Start or stop an IPFire service

IPFire is a Linux From Scratch derived Linux which uses SystemV and not SystemD to manage its init scripts.

Below is a list of common services that may need to be stopped, started, or restarted during troubleshooting.

The following commands are for advanced users. Please use with caution. Experiment on your test system first.

Be aware some services do not have a status option and some services do not have a Usage: message.

CRON

[root@ipfire ~]# /etc/rc.d/init.d/fcron
Usage: /etc/rc.d/init.d/fcron {start|stop|restart|status}

DHCP

[root@ipfire ~]# /etc/rc.d/init.d/dhcp
Usage: /etc/rc.d/init.d/dhcp {start|stop|reload|restart|status}

unbound - DNS

[root@ipfire ~]# /etc/rc.d/init.d/unbound
Usage: /etc/rc.d/init.d/unbound {start|stop|restart|reload|status|resolve|update-forwarders}

suricata - Intrusion Prevention System

[root@ipfire ~]# /etc/rc.d/init.d/suricata
Usage: /etc/rc.d/init.d/suricata {start|stop|restart|reload|status}

NTP

[root@ipfire ~]# /etc/rc.d/init.d/ntp
Usage: /etc/rc.d/init.d/ntp {start|stop|restart|status}

SSH

[root@ipfire ~]# /etc/rc.d/init.d/sshd
Usage: /etc/rc.d/init.d/sshd {start|stop|reload|restart|status}

Apache

[root@ipfire ~]# /etc/rc.d/init.d/apache
Usage: /etc/rc.d/init.d/apache {start|stop|restart|status}

Firewall

[root@ipfire ~]# /etc/rc.d/init.d/firewall
Usage: /etc/rc.d/init.d/firewall {start|reload|restart}

collectd

[root@ipfire etc]# /etc/rc.d/init.d/collectd
Usage: /etc/rc.d/init.d/collectd {start|stop|restart|status|backup}

vnstat

[root@ipfire etc]# /etc/rc.d/init.d/vnstat
Usage: /etc/rc.d/init.d/vnstat {start|stop|restart|status|backup}

Networking

/etc/init.d/networking/red {start|stop}
/etc/init.d/networking/green {start|stop}
/etc/init.d/networking/blue {start|stop}
/etc/init.d/networking/orange {start|stop}

Note: no Usage: and no status for above.

List all services

find /etc/rc.d/init.d/ -maxdepth 1 -type f -executable | sort

Feel free to add other services!

5 Likes
since /etc/init.d is a symbolic link to rc.d/init.d 
all commands can be shortened to /etc/init.d/command
4 Likes

glad you mentioned this! I found references to /etc/rc.d/init.d and references to /etc/init.d but I could not figure out which was “official” or the IPFire “standard” or even the preferred version…