diff options
Diffstat (limited to 'p4d.service')
-rw-r--r-- | p4d.service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/p4d.service b/p4d.service new file mode 100644 index 000000000000..de69384f439b --- /dev/null +++ b/p4d.service @@ -0,0 +1,16 @@ +[Unit] +Description=Perforce Server +Requires=network.target local-fs.target +After=network.target local-fs.target + +[Service] +Type=forking +User=perforce +EnvironmentFile=-/etc/p4d.conf +ExecStart=/usr/bin/p4d -d +ExecStop=/usr/bin/killall p4d +Restart=on-failure +RestartSec=10 + +[Install] +WantedBy=multi-user.target |