Last active
January 11, 2020 22:53
-
-
Save Waltibaba/f0569397fadefafbdc4be40bad5cc98d to your computer and use it in GitHub Desktop.
phabricator daemon phd systemd services
This file contains hidden or 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
/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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Plus, I believe
User=
andGroup=
should fall under the[Service]
part