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

/sysD/

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 17
Thread images: 3

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


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.