Created
October 16, 2020 03:18
-
-
Save ale10257/b92d0485f717b63ea4968a3bb5ba4131 to your computer and use it in GitHub Desktop.
workerman systemd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=workerman | |
After=syslog.target | |
After=network.target | |
After=redis.service | |
Requires=redis.service | |
[Service] | |
Type=forking | |
WorkingDirectory=/app/oms/workerman/ | |
RuntimeDirectory=workerman | |
User=vagrant | |
Group=vagrant | |
ExecStart=/usr/bin/php7.4 /app/oms/workerman/orderWS.php start -d | |
ExecStop=/usr/bin/php7.4 /app/oms/workerman/orderWS.php stop | |
ExecReload=/usr/bin/php7.4 /app/oms/workerman/orderWS.php restart -d | |
TimeoutSec=300 | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment