I'm attempting to write my first rc.d script and trying to follow this guide,
specifically https://docs.freebsd.org/en/articles/rc-scripting/#rcng-daemon
This is my attempt:-
The intention is run
But this doesn't work. What have I overlooked?
specifically https://docs.freebsd.org/en/articles/rc-scripting/#rcng-daemon
This is my attempt:-
Code:
#!/bin/sh
# PROVIDE: kodi
. /etc/rc.subr
name="kodi"
rcvar="kodi_enable"
command="xinit kodi"
load_rc_config $name
run_rc_command "$1"
The intention is run
xinit kodi
on startup. I have kodi_enable="YES" in /etc/rc.conf.But this doesn't work. What have I overlooked?