2018-12-13 14:33:16 -04:00
|
|
|
[Unit]
|
|
|
|
Description=WFB profile %i
|
|
|
|
PartOf=wifibroadcast.service
|
|
|
|
ReloadPropagatedFrom=wifibroadcast.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2024-07-19 14:05:13 -03:00
|
|
|
# common environment
|
2018-12-16 17:01:42 -04:00
|
|
|
EnvironmentFile=/etc/default/wifibroadcast
|
2024-07-19 14:05:13 -03:00
|
|
|
# per-profile environment
|
|
|
|
EnvironmentFile=-/etc/default/wifibroadcast.%i
|
2024-09-13 16:32:09 -03:00
|
|
|
ExecStart=/bin/bash -c "exec /usr/bin/wfb-server --profiles $(echo %i | tr : ' ') --wlans ${WFB_NICS}"
|
2018-12-13 14:33:16 -04:00
|
|
|
TimeoutStopSec=5s
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=5s
|
2022-09-08 15:28:30 -03:00
|
|
|
# Set logging to file in wifibroadcast.cfg
|
2022-06-22 02:58:51 -03:00
|
|
|
StandardError=inherit
|
2018-12-13 14:33:16 -04:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=wifibroadcast.service
|