0

I have a need to experiment with systemd config, where I have some locally stored (somewhere inside $HOME) *.service files. But I do not want to create some kind of VM or container only for that purpose of experimenting/testing.

Is it possible somehow to point systemctl to that custom directory, eliminating the need to copy that test service config file into one of the default directories (/etc/systemd, /usr/lib/systemd etc.)?

1

1 Answer 1

2

The user instance of systemd handles service files from ~/.config/systemd/user/

Simply add --user to all systemctl invocations e. g. systemctl --user status mytest for checking the state of the service defined in ~/.config/systemd/user/mytest.service

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .