2023-10-26 11:24:52 +01:00
|
|
|
[Unit]
|
|
|
|
Description=WAN interface for Koozali SME Server
|
2025-03-06 17:11:29 -05:00
|
|
|
After=network-pre.target
|
|
|
|
After=networking.service
|
2023-10-26 11:24:52 +01:00
|
|
|
Before=network-online.target
|
|
|
|
PartOf=networking.service
|
|
|
|
|
|
|
|
[Service]
|
2025-03-06 17:11:29 -05:00
|
|
|
PermissionsStartOnly=true
|
|
|
|
WorkingDirectory=/var/service/wan
|
|
|
|
Type=simple
|
2023-10-26 11:24:52 +01:00
|
|
|
ExecStartPre=/sbin/e-smith/service-status wan
|
2025-03-06 17:11:29 -05:00
|
|
|
ExecStart=/var/service/wan/run
|
|
|
|
ExecReload=/var/service/wan/run
|
|
|
|
|
|
|
|
#run.static will just exit, this might create an infinite loop
|
|
|
|
#unless set on-failure on-abnormal on-abort on-watchdog
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=20s
|
2023-10-26 11:24:52 +01:00
|
|
|
RemainAfterExit=yes
|
2025-03-06 17:11:29 -05:00
|
|
|
SyslogIdentifier=wan
|
2023-10-26 11:24:52 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=sme-server.target
|