[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/sysD/
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 17
Thread images: 3
File: systemd.png (31 KB, 600x400) Image search: [Google]
systemd.png
31 KB, 600x400
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 /
>>
File: 4L_QSO8Qbx2.jpg (104 KB, 540x720) Image search: [Google]
4L_QSO8Qbx2.jpg
104 KB, 540x720
>>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?
Thread replies: 17
Thread images: 3

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.