forked from acouzens/open5gs
2d1983cfb0
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
21 lines
346 B
SYSTEMD
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
|