Add systemd support
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Epoptes |
Fix Released
|
Low
|
Fotis Tsamis |
Bug Description
Now that Debian/Ubuntu are switching to systemd as default, it's time to Epoptes provide a better systemd support, which envolves:
* Ship systemd service unit files for both epoptes[-server] and epoptes-client.
* Add "systemctl reboot" and "systemctl poweroff" fallbacks to /usr/share/
* Gather more information from logind, specially about seats.
About service unit files, I've written the following examples for openSUSE package:
epoptes.service:
[Unit]
Description=A twisted-based daemon that manages epoptes-client
After=syslog.target
[Service]
Type=forking
PIDFile=
ExecStartPre=
ExecStart=
[Install]
WantedBy=
epoptes-
[Unit]
Description=
Wants=network-
After=network-
[Service]
EnvironmentFile
ExecStartPre=
ExecStart=
[Install]
WantedBy=
NOTE: network-
In the case one requires that epoptes-client service automatically restarts if connection is lost, he can provide the following drop-in:
/etc/systemd/
[Service]
Restart=always
Related branches
Changed in epoptes: | |
assignee: | nobody → Fotis Tsamis (ftsamis) |
importance: | Undecided → Low |
status: | New → Confirmed |
I'm also trying to provide a systemd user service for epoptes-client (to be launched with /etc/xdg/ autostart/ epoptes- client. desktop) , so it could be automatically restarted also for user sessions. However, I still can't make some functions to work properly, like logout, reboot, and poweroff (mainly because I can't talk to system dbus daemon from within a systemd user instance, or something similar).