open5gs/support/systemd/nextepc-sgwd.service.in
Sukchan Lee 2d1983cfb0 /var/run bug is fixed
For systemd environment, we define runtime directory like the follwings
MME : /var/run/nextepc-mmed
SGW : /var/run/nextepc-sgwd
PGW : /var/run/nextepc-pgwd
HSS : /var/run/nextepc-hssd
PCRF : /var/run/nextepc-pcrfd

In each directory, PID File is created as follows.
MME : /var/run/nextepc-mmed/pid
SGW : /var/run/nextepc-sgwd/pid
PGW : /var/run/nextepc-pgwd/pid
HSS : /var/run/nextepc-hssd/pid
PCRF : /var/run/nextepc-pcrfd/pid
2017-10-29 10:57:15 +09:00

21 lines
346 B
SYSTEMD

[Unit]
Description=NextEPC S-GW Daemon
After=networking.service
[Service]
Type=simple
User=nextepc
Group=nextepc
RuntimeDirectory=nextepc-sgwd
PIDFile=@LIB_DIR@/run/nextepc-sgwd/pid
Restart=always
ExecStart=@BIN_DIR@/nextepc-sgwd -f @SYSCONF_DIR@/nextepc/sgw.conf
RestartSec=2
RestartPreventExitStatus=1
[Install]
WantedBy=multi-user.target