Skip to content

Commit

Permalink
111
Browse files Browse the repository at this point in the history
  • Loading branch information
2233466866 committed Oct 17, 2022
1 parent 9693927 commit ac64038
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion mysql_conf/mysqld.service
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Unit]
Description=MySQL Server
Description=MySQL
After=default.target network.target syslog.target

[Service]
Expand Down
5 changes: 4 additions & 1 deletion nginx_conf/nginx.service
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Unit]
Description=Nginx service.
Description=Nginx
After=default.target network.target syslog.target

[Service]
Expand All @@ -10,6 +10,9 @@ ExecStart=/usr/local/nginx/sbin/nginx
ExecReload=/usr/local/nginx/sbin/nginx -s reload
ExecStop=/usr/local/nginx/sbin/nginx -s quit
PrivateTmp=true
Restart=always
RestartSec=5
StartLimitInterval=0

[Install]
WantedBy=multi-user.target
5 changes: 2 additions & 3 deletions owner.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[Unit]
Description=Owner service.
After=default.target network.target
Before=syslog.target
Description=Owner
Before=default.target network.target

[Service]
User=root
Expand Down
9 changes: 5 additions & 4 deletions php5_conf/php5.service
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
[Unit]
Description=Start php5 on boot.
After=default.target network.target
Description=PHP5
After=default.target network.target syslog.target

[Service]
User=root
Group=root
Type=forking
ExecStart=/usr/local/php5/sbin/php-fpm
ExecReload=/bin/kill -USR2 `cat /usr/local/php5/var/run/php-fpm.pid`
ExecStop=/bin/kill -INT `cat /usr/local/php5/var/run/php-fpm.pid`
PrivateTmp=true
Restart=always
RestartSec=5
StartLimitInterval=0

[Install]
WantedBy=multi-user.target
Expand Down
7 changes: 4 additions & 3 deletions php7_conf/php7.service
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
[Unit]
Description=Php7 service.
Description=PHP7
After=default.target network.target syslog.target

[Service]
User=root
Group=root
Type=forking
ExecStart=/usr/local/php7/sbin/php-fpm
ExecReload=/bin/kill -USR2 `cat /usr/local/php7/var/run/php-fpm.pid`
ExecStop=/bin/kill -INT `cat /usr/local/php7/var/run/php-fpm.pid`
PrivateTmp=true
Restart=always
RestartSec=5
StartLimitInterval=0

[Install]
WantedBy=multi-user.target
Expand Down

0 comments on commit ac64038

Please sign in to comment.