Skip to content

Commit

Permalink
systemd: switch all utils to explicit state notification
Browse files Browse the repository at this point in the history
Code was already prepared (owfs needed small fix), but it
wasn't enabled in units.
  • Loading branch information
zdzichu committed Apr 21, 2016
1 parent 5ad332e commit 1d66c05
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions module/owfs/src/c/owfs_callback.c
Expand Up @@ -251,6 +251,7 @@ static void *FS_init(void)
{
#endif /* FUSE_VERSION > 25 */
PIDstart();
Announce_Systemd();
return VOID_RETURN;
}
#endif /* FUSE_VERSION > 22 */
3 changes: 2 additions & 1 deletion src/scripts/systemd/owfs.service.in
Expand Up @@ -3,7 +3,8 @@ Description=1-wire filesystem FUSE mount
Documentation=man:owfs(1)

[Service]
Type=forking
Type=notify
NotifyAccess=all
ExecStart=@bindir@/owfs --server=127.0.0.1 --allow_other %t/owfs
ExecStop=/usr/bin/umount %t/owfs
RuntimeDirectory=owfs
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/systemd/owftpd.service.in
Expand Up @@ -3,6 +3,8 @@ Description=Anonymous FTP server for 1-wire access
Documentation=man:owftpd(1)

[Service]
Type=notify
NotifyAccess=all
ExecStart=@bindir@/owftpd --foreground --server=127.0.0.1
User=ow
Group=ow
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/systemd/owhttpd.service.in
Expand Up @@ -4,6 +4,8 @@ Documentation=man:owhttpd(1)
After=avahi-daemon.service

[Service]
Type=notify
NotifyAccess=all
ExecStart=@bindir@/owhttpd --foreground --server=127.0.0.1
User=ow
Group=ow
Expand Down
1 change: 1 addition & 0 deletions src/scripts/systemd/owserver.service.in
Expand Up @@ -4,6 +4,7 @@ Documentation=man:owserver(1)

[Service]
Type=notify
NotifyAccess=all
ExecStart=@bindir@/owserver --w1
Restart=on-failure
#User=ow
Expand Down

0 comments on commit 1d66c05

Please sign in to comment.