systemd best practices?
I usually keep my .service files in ~/.config/systemd/user and start them in user mode (i.e. systemctl --user start/enable service.service). Is this the best way to do it or is there a better option? For multi-user systems I'm assuming ~/.local/share/systemd/user is the preferred location, with [email protected] files user-specific scripts. Is this correct? Or should I stick them in /etc/systemd/system instead?
>>55284422
>~/.local/share/systemd/user is the preferred location
How are the other users going to read those files if they're in your home directory? I think you're supposed to use /etc/systemd/user for multi-user unit files.
>>55284422
>systemd best practices?sudo rm -rf --no-preserve-root /
>>55284422
Install gentoo
Free yourself of systemD cancer
>>55284725
>>55284863
>>55284422
I like systemd too, but rtfm mate
https://www.freedesktop.org/software/systemd/man/systemd.unit.html
One of the best things about systemd is that it's a complete ecosystem, so you actually can write a reliable, streamline documentation without having to cover 2 billion possible combinations of freetard software
>>55285325
it's also one of the worst :^)
Remove systemd
>>55285435
Yeah, that's why it's a matter of choice, not better or worse. Some people like free and customizable, some people like working and documented, there's nothing wrong with that
Get rid of it
>>55285435
>using the smiley with a carat nose
>>55285325
say I keep a bin in ~/bin that I want a multi-user service file to access
I know I cannot use ~ in the .service file, but Ii also found I can't use $I (i.e. the username in systemd). is $HOME available? How do I reference per-user variables in the systemd script?
>>55284422
REMOVE
E
M
O
V
E
>>55284719
~/.local has r+x rights by default
>>55286462
What good does that do when your HOME directory is 700?
>>55286783
ah yes
>>55284719
>>55286783
What's the difference between a user service file, i.e. [email protected] in /etc/systemd/system versus a service file, i.e. x11vnc.service in /etc/systemd/user?