mysql/percona
# systemd service file for MySQL forking server
#
[Unit]
Description=MySQL Server
Documentation=man:mysqld(8)
Documentation=http://dev.mysql.com/doc/refman/en...
mysql/percona
# systemd service file for MySQL forking server
#
[Unit]
Description=MySQL Server
Documentation=man:mysqld(8)
Documentation=http://dev.mysql.com/doc/refman/en/using-systemd.html
After=network.target
After=syslog.target
[Install]
WantedBy=multi-user.target
Alias=mysql.service
[Service]
User=mysql
Group=mysql
Type=forking
PIDFile=/webdata/opt/local/percona/misc/mysqld.pid
# Disable service start and stop timeout logic of systemd for mysqld service.
TimeoutSec=0
# Execute pre and post scripts as root
PermissionsStartOnly=true
# Needed to create system tables
ExecStartPre=/webdata/opt/local/percona/bin/mysqld_pre_systemd
# Start main service
ExecStart=/webdata/opt/local/percona/bin/mysqld --daemonize --pid-file=/webdata/opt/local/percona/misc/mysqld.pid $MYSQLD_OPTS
# Use this to switch malloc implementation
EnvironmentFile=-/etc/sysconfig/mysql
# Sets open_files_limit
LimitNOFILE = 51200
LimitNPROC = 51200
Restart=on-failure
RestartPreventExitStatus=1
PrivateTmp=false
nginx
[Unit]
Description=nginx - high performance web server
Documentation=http://nginx.org/en/docs/
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
PIDFile=/webdata/opt/local/tengine/logs/nginx.pid
ExecStartPre=/webdata/opt/local/tengine/sbin/nginx -t -c /webdata/opt/local/tengine/conf/nginx.conf
ExecStart=/webdata/opt/local/tengine/sbin/nginx -c /webdata/opt/local/tengine/conf/nginx.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target
php-fpm
[Unit]
Description=The PHP FastCGI Process Manager
After=syslog.target network.target
[Service]
Type=forking
PIDFile=/webdata/opt/local/php/var/run/php-fpm.pid
ExecStart=/webdata/opt/local/php/sbin/php-fpm --daemonize --fpm-config /webdata/opt/local/php/etc/php-fpm.conf
ExecReload=/bin/kill -USR2 $MAINPID
ExecStop=/bin/kill -SIGINT $MAINPID
[Install]
WantedBy=multi-user.target