You are not logged in.
Hi,
some months ago I've configured my pc so that every time a specific usb pen is connected a bash script is executed.
I've used systemd to do that and it works perfectly, but I cannot remember neither the name of the systemd.service nor its location.
I've tried to find it on the hard disk, but I did not manage.
Can you help me to find it?
When I insert the USB device, the script is automatically executed, and the calling process is /usr/lib/systemd/systemd --user .
Is it possible to find the service?
This is taken from journalctl -r when I connect the KIN128GB pendrive (udisksd automounts it and then systemd calls the script which executes a snapshot with backintime using the BackupKIN128GB profile):
ott 31 18:38:20 n752vx python[228049]: backintime (andreak/2): INFO: Take a new snapshot. Profile: 2 BackupKIN128GB
ott 31 18:38:19 n752vx python[228049]: backintime (andreak/2): INFO: Lock
ott 31 18:38:19 n752vx systemd[786]: Started Exec backintime backup of KIN128GB pendrive on mount.
ott 31 18:38:19 n752vx udisksd[1344]: Mounted /dev/sde1 at /run/media/andreak/KIN128GB on behalf of uid 1000Last edited by Xwang (2020-10-31 21:12:24)
Offline
$ grep -r backintime {/etc,/usr/lib/,~/.config}/systemd/user/*.service
Offline
$ grep -r backintime {/etc,/usr/lib/,~/.config}/systemd/user/*.service
Thank you very much!!!
It was in the ~/.config/systemd/user folder and I forgot that the systemd user has a different wiki page.
Problem solved!
Offline