-
-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
I made a user service template for svlogd based on the one on this discussion. It runs perfectly fine and most dinitctl commands work as expected (dinitctl start svlogd@dbus starts logging for the dbus service, for example), but anytime I try to enable or disable a service I get an error:
$ dinitctl enable svlogd@dbus
dinitctl: could not open service description file '/home/<user>/.config/dinit.d/svlogd': No such file or directory
Creating/removing symbolic links from within boot.d still works, at least (no complaints from dinit-check -n).
Here's the code for both the service and the wrapper script, if it helps:
type = process
command = /usr/local/lib/dinit/scripts/svlogd-user.wrapper -ttt $HOME/.local/state/log/dinit/$1
restart = on-failure
smooth-recovery = yes
log-type = buffer
consumer-of = $1
before: $1
#!/bin/sh
# Wrapper script for svlogd user services (draft)
mkdir -p "$2"
[ -f "$2/config" ] || cat << EOF > "$2/config"
n5
N2
p[${2##*/}]
EOF
exec svlogd "$@"
Distro is Void Linux, dinit version is 0.20.0.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels