LocalAuthority / deploy / jumper / host-manager-mdns.service
1 contributor
23 lines | 0.697kb
[Unit]
Description=Xdev Host Manager mDNS Seed Listener
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=host-manager
Group=host-manager
WorkingDirectory=/usr/local/xdev-host-manager
EnvironmentFile=/etc/xdev/host-manager.env
ExecStartPre=+/usr/bin/install -d -o host-manager -g host-manager /usr/local/xdev-host-manager/var
ExecStart=/usr/bin/perl /usr/local/xdev-host-manager/scripts/mdns_host_seed.pl --database /usr/local/xdev-host-manager/var/mdns-observations.yaml
Restart=on-failure
RestartSec=3
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=full
ProtectHome=true
ReadWritePaths=/usr/local/xdev-host-manager/var

[Install]
WantedBy=multi-user.target