Questions tagged [systemd-service]
50 questions
0
votes
1 answer
systemd tmpfs shadow directory -- copy to/from ram and back when (u)mount-ing
I'd like to keep some directories (e.g. /var/cache/apt, /var/lib/apt/lists, user browser caches or even Mozilla profiles) in RAM, but still backed by disk. The files should be copied to RAM when mounting and copied back to disk when umounting.
Short…

usretc
- 101
- 1
0
votes
1 answer
Systemd: Unlock drives before ZFS import
I have LUKS encrypted drives and ZFS on top of that. I unlock the drives on boot using a script. I made a systemd service for that, but the script take some time and the zfs-import-cache.service starts before my script…

Laurent
- 406
- 1
- 4
- 14
0
votes
1 answer
How to start a gnome-terminal with command from the systemd service on Ubuntu 20.04?
I wrote e service file called /etc/systemd/system/mytest.service . Then I would like to start a new terminal window with some commands that print on the new terminal console.
The file mytest.service has this content:
[Unit]
Description= Test
After=…

ywiyogo
- 121
- 4
0
votes
2 answers
CentOS 7 systemd.exec configuration: alternatives to LogsDirectory & CacheDirectory?
On a CentOS Linux 7.8 system, if I create a systemd service configuration file and include LogsDirectory and/or CacheDirectory in the [Service] section, then do a systemctl daemon-reload, the following errors are printed in /var/log/messages:
Sep 8…

mhucka
- 679
- 4
- 10
- 22
0
votes
1 answer
systemd service fails to authenticate scp between two servers
I have written a service that triggers a shell script to backup a postgres database, on a CentOS7 server. It dumps the backup file into the /tmp/ folder and then it is supposed to copy the file across to another server, but something is amiss, I…

iFunction
- 111
- 1
- 1
- 5