diff options
Diffstat (limited to 'epoptes-client.service')
-rw-r--r-- | epoptes-client.service | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/epoptes-client.service b/epoptes-client.service new file mode 100644 index 000000000000..0e365c678f47 --- /dev/null +++ b/epoptes-client.service @@ -0,0 +1,12 @@ +[Unit] +Description=Epoptes-client system daemon +Wants=network-online.target +After=network-online.target + +[Service] +EnvironmentFile=-/etc/default/epoptes-client +ExecStartPre=/bin/sh -c "if ! [ -s /etc/epoptes/server.crt ]; then /usr/sbin/epoptes-client -c ${SERVER}; fi" +ExecStart=/usr/sbin/epoptes-client + +[Install] +WantedBy=multi-user.target
\ No newline at end of file |