Good evening. Thank you for the reply.
Yes, the script runs fine on its own, and it also runs fine as a service when ran manually. It just will not run at any runlevel.
Not PERL or Python scripts. just outright shell commands.
Pretty sure I deleted all the service files I created. I will upload them shortly.
Here is what I am trying to run
#!/bin/sh
sh /etc/dns/start.sh
start.sh contents is :
#!/bin/sh
dotnet DnsServerApp.dll
these are not the service files i created. i created real init.d services with start, stop, reload, status functions. i then symlinked that service file into /etc/rc.d/rc3.d/S55start or something similar. rebuilding the service files now, will upload shortly.
i could start the service with /etc/rc.d/init.d/dnsserver start and it would be fine. but at boot, nothing.
/etc/rc.d/init.d/dnsserver (yes, chmod +x) :
#! /bin/sh
### BEGIN INIT INFO
# Provides: dnsserver
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Start DNS Server
# Description: Start DNS SERVER
### END INIT INFO
case "$1" in
start)
sh /etc/dns/startscript.sh
;;
stop)
pidof dotnet | xargs kill -9
;;
restart|reload|force-reload)
pidof dotnet | xargs kill -9
sh /etc/dns/startscript.sh
;;
*)
# echo "Usage: $0 start|stop" >&2
# exit 3
;;
esac
[root@ipfire ~]# /etc/rc.d/init.d/dnsserver start
Technitium DNS Server was started successfully.
Using config folder: /etc/dns/config
Note: Open http://ipfire:5380/ in web browser to access web console.
Press [CTRL + C] to stop...
after this, i do ln -s /etc/rc.d/init.d/dnsserver /etc/rc.d/rc3.d/S99dnsserver . reboot, nothing