View raw

1 [Unit] 2 Description=FAPG DAQ sensor node 3 Wants=network-online.target 4 After=network-online.target 5 6 [Service] 7 Type=simple 8 User=fapg-daq 9 Group=fapg-daq 10 SupplementaryGroups=dialout 11 12 RuntimeDirectory=fapg-daq 13 RuntimeDirectoryMode=0750 14 ReadWritePaths=/run/fapg-daq 15 ReadWritePaths=/var/lib/fapg-daq 16 17 WorkingDirectory=/opt/fapg/fapg-daq 18 EnvironmentFile=/etc/fapg-daq/daq.conf 19 20 ExecStart=/opt/fapg/fapg-daq/roles/daq-node/bin/fapg-daq-node 21 22 Restart=always 23 RestartSec=5 24 25 # Basic hardening. Do not enable PrivateDevices=true because this service needs /dev/ttyUSB0. 26 NoNewPrivileges=true 27 ProtectHome=true 28 ProtectSystem=strict 29 30 [Install] 31 WantedBy=multi-user.target 32