File epoptes.service of Package epoptes

# TODO: If this is an LTSP client, then service only should run if EPOPTES=True in lts.conf

Description=A twisted-based daemon that manages epoptes-client

ExecStartPre=/bin/sh -c "if ! [ -s /etc/epoptes/server.key ] || ! [ -s /etc/epoptes/server.crt ]; then faketime '1970-01-01 00:00:00 UTC' openssl req -batch -x509 -nodes -newkey rsa:1024 -days $(($(date --utc +%s) / 86400 + 3652)) -keyout /etc/epoptes/server.key -out /etc/epoptes/server.crt; chmod 600 /etc/epoptes/server.key; fi"
ExecStart=/usr/bin/twistd --pidfile /run/ --logfile /var/log/epoptes.log epoptes

openSUSE Build Service is sponsored by