I am trying to make service for netbird (https://aur.archlinux.org/packages/netbird-bin) , but service is terminated with
exit status: 2
/etc/dinit.d/netbirdtype = process
command = /etc/dinit.d/scripts/netbird
/
etc/dinit.d/scripts/netbird#!/bin/sh
[ -r conf ] && . ./conf
exec netbird service run --log-level info 1>&2
Please help to make it work
If someone try this on runit also
https://github.com/netbirdio/netbird/issues/363#issuecomment-1180257811
Its missing PATH
/etc/dinit/environment
PATH=/usr/bin
/etc/dinit.d/netbird
type = process
restart = true
command = /usr/bin/netbird service run --config /etc/netbird/config.json --log-level info --log-file /var/log/netbird.log 1>&2
or just export the path in your existing script
@vaapicon thank you for help
You don't want the "1>&2" at the end; dinit won't process it (so it becomes an argument to netbird-service-run, which probably won't understand it either). You shouldn't need it anyway.
ok ty