Skip to content

Instantly share code, notes, and snippets.

@saiprasad1996
Created October 1, 2019 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saiprasad1996/afb658175f402adc2a64e56fcfdac81a to your computer and use it in GitHub Desktop.
Save saiprasad1996/afb658175f402adc2a64e56fcfdac81a to your computer and use it in GitHub Desktop.
Linux systemd service template file
[Unit]
Description=Linux Demo service
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=centos
ExecStart=/usr/bin/env php /path/to/server.php
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment