Questions tagged [systemd-run]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Kill all processes spawned by python script

I want to run a python script, that spawns for example Google Chrome. It should return an error if script fails. I tried to use systemd-run --scope --collect python script.py, but without a success - ...
1
vote
0answers
41 views

using systemd-run to replace 'at' commands

What is the best way of using systemd-run in place of a simple sudo -u xxx at -f backupJ-447.cmd 03:10 Our org has gone systemd mad and no longer installs 'at', 'batch' and cron is depricated on our ...
2
votes
0answers
107 views

Running command under systemd slice works for root, but not user

I'm trying to execute a command under some resource limits. This correctly limits my-bin to just 1 CPU core. I'm able to verify with htop. $ sudo systemd-run -p AllowedCPUs=0 -- ./my-bin However, ...
4
votes
1answer
413 views

What does "?" means in ls -l output? [duplicate]

I saw a few files/dir are inaccessible even to the root user: find: ‘/run/user/1000/gvfs’: Permission denied. So I went a level deeper and ran ls -l; below is the output. /run/user/125# ll ls: cannot ...
-1
votes
1answer
42 views

Does /dev, /run and /sys exist on HDD (if so what is there location if it can be meaningfully traced)?

At the time of Linux installation, i have mentioned only one filesystem (/dev/sda1 -> ext4 -> / ). But for dev, run, proc, sys - Linux is creating addition FS which is inferable from mount. $ ...
1
vote
1answer
473 views

Running systemd service synchronously / in foreground

I would like to replace my Xsession with my custom program (kiosk-like setup), previously I was just setting STARTUP variable in my .xsessionrc file like: STARTUP='/path/to/my/program' Now I want to ...
3
votes
1answer
522 views

How to limit CPU usage with systemd-run

I have a buggy program which uses 100% CPU even when it's idle. Since fixing it isn't practical at the moment, I'd like to just limit it to be able to use no more than 10% CPU. However no matter ...