Contents of /trunk/mysql5/mysqld.service
Parent Directory
|
Revision Log
Revision 1373 -
(show annotations)
(download)
Wed Jun 29 07:15:12 2011 UTC (12 years, 10 months ago) by niro
File size: 402 byte(s)
Wed Jun 29 07:15:12 2011 UTC (12 years, 10 months ago) by niro
File size: 402 byte(s)
-fixed a typo: pidfile -> pid-file and added ExecStop cmd
1 | [Unit] |
2 | Description=MySQL Server Daemon |
3 | After=syslog.target sockets.target |
4 | |
5 | [Service] |
6 | Type=simple |
7 | User=mysql |
8 | Group=mysql |
9 | ExecStart=/usr/bin/mysqld_safe --basedir=/usr --datadir=/var/lib/mysql --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --user=mysql |
10 | ExecStop=/bin/kill -15 $MAINPID |
11 | TimeoutSec=60 |
12 | RemainAfterExit=yes |
13 | |
14 | [Install] |
15 | WantedBy=multi-user.target |
16 | Also=mysqld.socket |