21 lines
473 B
SYSTEMD
21 lines
473 B
SYSTEMD
# Parallel Virtual Cluster node daemon unit file
|
|
|
|
[Unit]
|
|
Description = Parallel Virtual Cluster node daemon
|
|
After = network.target
|
|
Wants = network-online.target
|
|
PartOf = pvc.target
|
|
|
|
[Service]
|
|
Type = simple
|
|
WorkingDirectory = /usr/share/pvc
|
|
Environment = PYTHONUNBUFFERED=true
|
|
Environment = PVC_CONFIG_FILE=/etc/pvc/pvc.conf
|
|
ExecStartPre = /bin/sleep 2
|
|
ExecStart = /usr/share/pvc/pvcnoded.py
|
|
ExecStopPost = /bin/sleep 2
|
|
Restart = on-failure
|
|
|
|
[Install]
|
|
WantedBy = pvc.target
|