Última atividade 1757495249

适用于Linux系统的服务文件模板,替换名称和启动命令即可复用

Revisão 9d3457370865c847fd1ba816f589d1c8ec2c1a9b

aria2.service Bruto
1[Unit]
2Description=aria2c server
3After=network.target remote-fs.target nss-lookup.target
4
5[Service]
6RestartSec=2s
7Type=simple
8User=root
9Group=root
10WorkingDirectory=/www/aria2
11ExecStart=/www/aria2/aria2c --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all -c --input-file /www/aria2/aria2.session
12Restart=always
13
14[Install]
15WantedBy=multi-user.target
16
gitea.service Bruto
1[Unit]
2Description=Gitea Service.
3After=syslog.target
4After=network.target
5
6[Service]
7User=gitea
8ExecStart=/www/gitea/start-gitea-backend.sh
9
10[Install]
11WantedBy=multi-user.target
mysql.service Bruto
1[Unit]
2Description=MySQL Community Server
3After=network.target syslog.target
4
5[Service]
6Type=forking
7
8ExecStart=/etc/init.d/mysql start
9ExecStop=/etc/init.d/mysql stop
10ExecReload=/etc/init.d/mysql reload
11
12Restart=no
13PrivateTmp=false
14
15[Install]
16WantedBy=multi-user.target
nginx.service Bruto
1[Unit]
2Description=The NGINX HTTP and reverse proxy server
3After=network.target remote-fs.target nss-lookup.target
4
5[Service]
6Type=forking
7PIDFile=/usr/local/nginx/logs/nginx.pid
8ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
9ExecReload=/usr/local/nginx/sbin/nginx -s reload
10ExecStop=/bin/kill -s QUIT $MAINPID
11PrivateTmp=false
12
13[Install]
14WantedBy=multi-user.target
php-fpm.service Bruto
1[Unit]
2Description=The PHP FastCGI Process Manager
3After=network.target
4
5[Service]
6Type=simple
7PIDFile=/usr/local/php/var/run/php-fpm.pid
8ExecStart=/usr/local/php/sbin/php-fpm --nodaemonize --fpm-config /usr/local/php/etc/php-fpm.conf
9ExecReload=/bin/kill -USR2 $MAINPID
10ExecStop=/bin/kill -s QUIT $MAINPID
11PrivateTmp=false
12
13[Install]
14WantedBy=multi-user.target
vsserver.service Bruto
1[Unit]
2Description=VerySync Server.
3After=syslog.target
4After=network.target
5
6[Service]
7User=root
8ExecStart=/www/verysync/vsserver.sh start
9
10[Install]
11WantedBy=multi-user.target
12
13