Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to list all auto-start services in archlinux?

I am aware of using systemctl status to check a particular status of the service and using systemctl enable to put a service in auto-start when system boot. But how can I list all exisiting auto-start services?

like image 233
superuserDoHaveStupidQ Avatar asked Jun 01 '17 07:06

superuserDoHaveStupidQ


People also ask

How do I list running services in Linux?

The easiest way to list services on Linux, when you are on a SystemV init system, is to use the “service” command followed by “–status-all” option. This way, you will be presented with a complete list of services on your system. As you can see, each service is listed preceded by symbols under brackets.

What is Systemctl in Arch?

systemctl - Control the systemd system and service manager.

How do I check my systemd service status?

To check a service's status, use the systemctl status service-name command. I like systemd's status because of the detail given. For example, in the above listing, you see the full path to the unit file, the status, the start command, and the latest status changes.

Where can I find systemd services?

Unit files are stored in the /usr/lib/systemd directory and its subdirectories, while the /etc/systemd/ directory and its subdirectories contain symbolic links to the unit files necessary to the local configuration of this host. To explore this, make /etc/systemd the PWD and list its contents.


1 Answers

For both system and user unit files :

systemctl list-unit-files | grep enabled && systemctl --user list-unit-files | grep enabled
like image 113
papey Avatar answered Dec 30 '22 14:12

papey