Skip to content

Instantly share code, notes, and snippets.

@gytisrepecka
Created March 26, 2019 09:07
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 gytisrepecka/557660aed94afebec68c0a2432ae348e to your computer and use it in GitHub Desktop.
Save gytisrepecka/557660aed94afebec68c0a2432ae348e to your computer and use it in GitHub Desktop.
WriteFreely Systemd service configuration.
[Unit]
Description=Write Freely Instance
After=syslog.target network.target
[Service]
Type=simple
StandardOutput=syslog
StandardError=syslog
WorkingDirectory=/var/www/example.com
ExecStart=/var/www/example.com/writefreely
Restart=always
User=writefreely
Group=writefreely
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment