Последняя активность 1757495249

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

doracoin ревизий этого фрагмента 1757495249. К ревизии

2 files changed, 16 insertions, 1 deletion

aria2.service(файл создан)

@@ -0,0 +1,15 @@
1 + [Unit]
2 + Description=aria2c server
3 + After=network.target remote-fs.target nss-lookup.target
4 +
5 + [Service]
6 + RestartSec=2s
7 + Type=simple
8 + User=root
9 + Group=root
10 + WorkingDirectory=/www/aria2
11 + ExecStart=/www/aria2/aria2c --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all -c --input-file /www/aria2/aria2.session
12 + Restart=always
13 +
14 + [Install]
15 + WantedBy=multi-user.target

gitea.service

@@ -8,4 +8,4 @@ User=gitea
8 8 ExecStart=/www/gitea/start-gitea-backend.sh
9 9
10 10 [Install]
11 - WantedBy=multi-user.target
11 + WantedBy=multi-user.target

doracoin ревизий этого фрагмента 1755246908. К ревизии

5 files changed, 67 insertions

gitea.service(файл создан)

@@ -0,0 +1,11 @@
1 + [Unit]
2 + Description=Gitea Service.
3 + After=syslog.target
4 + After=network.target
5 +
6 + [Service]
7 + User=gitea
8 + ExecStart=/www/gitea/start-gitea-backend.sh
9 +
10 + [Install]
11 + WantedBy=multi-user.target

mysql.service(файл создан)

@@ -0,0 +1,16 @@
1 + [Unit]
2 + Description=MySQL Community Server
3 + After=network.target syslog.target
4 +
5 + [Service]
6 + Type=forking
7 +
8 + ExecStart=/etc/init.d/mysql start
9 + ExecStop=/etc/init.d/mysql stop
10 + ExecReload=/etc/init.d/mysql reload
11 +
12 + Restart=no
13 + PrivateTmp=false
14 +
15 + [Install]
16 + WantedBy=multi-user.target

nginx.service(файл создан)

@@ -0,0 +1,14 @@
1 + [Unit]
2 + Description=The NGINX HTTP and reverse proxy server
3 + After=network.target remote-fs.target nss-lookup.target
4 +
5 + [Service]
6 + Type=forking
7 + PIDFile=/usr/local/nginx/logs/nginx.pid
8 + ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
9 + ExecReload=/usr/local/nginx/sbin/nginx -s reload
10 + ExecStop=/bin/kill -s QUIT $MAINPID
11 + PrivateTmp=false
12 +
13 + [Install]
14 + WantedBy=multi-user.target

php-fpm.service(файл создан)

@@ -0,0 +1,14 @@
1 + [Unit]
2 + Description=The PHP FastCGI Process Manager
3 + After=network.target
4 +
5 + [Service]
6 + Type=simple
7 + PIDFile=/usr/local/php/var/run/php-fpm.pid
8 + ExecStart=/usr/local/php/sbin/php-fpm --nodaemonize --fpm-config /usr/local/php/etc/php-fpm.conf
9 + ExecReload=/bin/kill -USR2 $MAINPID
10 + ExecStop=/bin/kill -s QUIT $MAINPID
11 + PrivateTmp=false
12 +
13 + [Install]
14 + WantedBy=multi-user.target

vsserver.service(файл создан)

@@ -0,0 +1,12 @@
1 + [Unit]
2 + Description=VerySync Server.
3 + After=syslog.target
4 + After=network.target
5 +
6 + [Service]
7 + User=root
8 + ExecStart=/www/verysync/vsserver.sh start
9 +
10 + [Install]
11 + WantedBy=multi-user.target
12 +
Новее Позже