Annotation of /trunk/mysql/mysqld.service
Parent Directory | Revision Log
Revision 1616 -
(hide annotations)
(download)
Fri Jan 13 15:42:58 2012 UTC (12 years, 8 months ago) by niro
File size: 394 byte(s)
Fri Jan 13 15:42:58 2012 UTC (12 years, 8 months ago) by niro
File size: 394 byte(s)
-renamed pkg to mysql and use /run instead of /var/run
1 | niro | 1616 | [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=/run/mysqld/mysqld.pid --socket=/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 |