Skip to content

Instantly share code, notes, and snippets.

@Waltibaba
Last active January 11, 2020 22:53
Show Gist options
  • Save Waltibaba/f0569397fadefafbdc4be40bad5cc98d to your computer and use it in GitHub Desktop.
Save Waltibaba/f0569397fadefafbdc4be40bad5cc98d to your computer and use it in GitHub Desktop.
phabricator daemon phd systemd services
/lib/systemd/system/phabricator-phd.service
[Unit]
Description=phabricator-phd
After=syslog.target network.target
Before=apache2.service
[Service]
User=wwwrun
Group=www
Type=oneshot
Environment="PATH=/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin"
ExecStart=/srv/www/htdocs/phabricator/bin/phd start
ExecStop=/srv/www/htdocs/phabricator/bin/phd stop
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
THEN
systemctl enable phabricator-phd.service
systemctl start phabricator-phd
systemctl status phabricator-phd
@tomdev
Copy link

tomdev commented Feb 22, 2017

Note that there is actually a typo in Enviroment – should be Environment.

@tomdev
Copy link

tomdev commented Feb 22, 2017

Plus, I believe User= and Group= should fall under the [Service] part

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment