I hope this is a reasonable place to post this - the "Initscripts Collection" thread is closed.
After much confused searching I was able to find an old version of webmin.rc
(
https://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/webmin&id=824ff84c588467ce8fce6a1ce56c15a6d4ae287b)
...which looks like this:
$this->bbcode_second_pass_code('', '#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
start=/etc/webmin/start
stop=/etc/webmin/stop
lockfile=/var/lock/webmin
case "$1" in
'start')
stat_busy "Starting Webmin daemon"
$start >/dev/null 2>&1 </dev/null
RETVAL=$?
if [ "$RETVAL" = "0" ]; then
touch $lockfile >/dev/null 2>&1
add_daemon webmin
stat_done
else
stat_fail
fi
;;
'stop')
stat_busy "Stopping Webmin daemon"
$stop >/dev/null 2>&1 </dev/null
RETVAL=$?
if [ "$RETVAL" = "0" ]; then
rm -f $lockfile
rm_daemon webmin
stat_done
else
stat_fail
fi
;;
'restart')
$stop && $start
RETVAL=$?
;;
*)
echo "Usage: $0 { start | stop | restart }"
RETVAL=1
;;
esac
exit $RETVAL
')
I'm not sure if this was the right thing to do, but I renamed webmin.rc to webmin and placed it in the /etc/rc.d directory, and added it to my list of daemons in rc.conf, and it works, at least at first glance - though I'm guessing there's a cleaner way to do it, and I don't know if there are any other files I need (webmin.conf?).
Digging through the repository/archives and seeing the history of the changes to the package build script made me sort of queasy about having just blindly ran "pacman -Sy samba" and "pacman -Sy webmin" etc, given how much there is in the changelog/history that's systemd-related. Is there any way to just pull an old pre-systemd version of the entire install package for webmin or samba etc?
Failing that, does anyone know if I need anything other than webmin.rc to make webmin run happily on OXNAS?
thanks for any assistance...