Skip to content

Instantly share code, notes, and snippets.

@ale10257
Created October 16, 2020 03:18
Show Gist options
  • Save ale10257/b92d0485f717b63ea4968a3bb5ba4131 to your computer and use it in GitHub Desktop.
Save ale10257/b92d0485f717b63ea4968a3bb5ba4131 to your computer and use it in GitHub Desktop.
workerman systemd
[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