Replies: 1 comment 2 replies
-
I think so, yes. If I understand correctly, you're wanting to run
By default dinit outputs service state changes and it looks like these are then logged by turnstile. I haven't been using turnstile myself but AFAIU it uses a shell script to launch
That is the standard behaviour in dinit. (It won't suppress the state change messages however as those are issued by dinit itself, use
There's no support for value substitution within in the env-file. Ideally it should be arranged (by turnstile/your pam configuration) that these particular variables (
I'd have no objection to adding it (feel free to open a PR). You can also send signals via number - SIGALARM is signal 14 on Linux, according to |
Beta Was this translation helpful? Give feedback.
-
I wrote a dinit user service for mbsync (it uses pass and gnupg to check for mail).
Dinit is started as my user by turnstile, in void linux (with self-built 0.18).
This seems to work, but I wanted to ask for feedback, plus a bunch of related questions.
My attempt:
with the variables
Does this make sense in dinit?
Here's a bunch of things I don't understand:
Is there a way to not have these? e.g. tweak scripted, restart or similar?
in runit, I'd do
exec 2>&1
beforeexec
ing the command: is there a similar option in dinit?the substitution for
$HOME
does not work in the env-file, i.e.XDG_CONFIG_HOME=${HOME}/.config
etc do not work. How to fix this?dinitctl signal
does not haveALRM
signal (in runit:sv alarm mbsync
): would it make sense to add it? This is useful in conjunction withsnooze
.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions