Difference between revisions of "OpenRC, an alternative to systemd"

/* Split off configuation into a separate section "
imported>Viking60
imported>Aaditya
(/* Split off configuation into a separate section ")
Line 98: Line 98:


Then the cronie service would be added to the default runelevel and would automatically be started at boot.
Then the cronie service would be added to the default runelevel and would automatically be started at boot.
=== Removing services ===
While we start services with
rc-update add <service> default
there might be the need to stop a service from time to time; like this:
sudo rc-update del tor default
You will need to do this after having removed an OpenRC package, or simply because you want to stop a service.
To check what services are running, and that you successfully have stopped the service, you can type:
rc-status


=== Additional packages ===
=== Additional packages ===
Line 179: Line 168:
For running the ''ps'' command, the '''procps-ng-nosystemd / procps-ng-eudev''' package can be installed.
For running the ''ps'' command, the '''procps-ng-nosystemd / procps-ng-eudev''' package can be installed.
To suspend and hibernate via the command line, '''pm-utils''' can be installed. You may also need the '''upower-nosystemd-pm-utils / upower-eudev-pm-utils''' package if suspend and hibernate does not work. Also see the [[Using_OpenRC,_an_alternative_to_systemd#Troubleshooting | troubleshooting]] section for enabling swap.
To suspend and hibernate via the command line, '''pm-utils''' can be installed. You may also need the '''upower-nosystemd-pm-utils / upower-eudev-pm-utils''' package if suspend and hibernate does not work. Also see the [[Using_OpenRC,_an_alternative_to_systemd#Troubleshooting | troubleshooting]] section for enabling swap.
== Configuration ==
=== Adding or Removing services ===
We can add services to startup with:
sudo rc-update add <service> default
A service can be removed from startup with:
sudo rc-update del <service> default
You will need to do this after having removed an OpenRC package, or simply because you want to stop a service.
=== Check running services ===
To check what services are running, one can type:
rc-status
=== Start / stop / restart services ===
To start / stop / restart services ''immediately'', the '''rc-service''' command can be used. For example
sudo rc-service networkmanager restart


== Replacing systemd with eudev (advanced users) ==
== Replacing systemd with eudev (advanced users) ==
Anonymous user