Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run-parts not executing script #20

Open
JoePotchen opened this issue Dec 14, 2018 · 2 comments
Open

run-parts not executing script #20

JoePotchen opened this issue Dec 14, 2018 · 2 comments

Comments

@JoePotchen
Copy link

I have created an executable in /etc/usbmount/mound.d that runs normally as well as when I manually call run-parts myself, however the script does not execute automatically when I plug in a drive.

Dec 14 05:03:09 otterslave systemd[1]: Created slice system-usbmount.slice.
Dec 14 05:03:09 otterslave systemd[1]: Starting [email protected]...
Dec 14 05:03:09 otterslave systemd[1]: Starting [email protected]...
Dec 14 05:03:09 otterslave usbmount[2390]: dev/sdd does not contain a filesystem or disklabel
Dec 14 05:03:09 otterslave systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
Dec 14 05:03:09 otterslave systemd[1]: [email protected]: Failed with result 'exit-code'.
Dec 14 05:03:09 otterslave systemd[1]: Failed to start [email protected].
Dec 14 05:03:14 otterslave usbmount[2420]: executing command: mount -texfat -ouser,umask=000,sync,noexec,nodev,noatime,nodiratime,gid=xbian,uid=xbian,umask=0 dev/sdd1 /media/usb0
Dec 14 05:03:14 otterslave usbmount[2420]: executing command: run-parts /etc/usbmount/mount.d
Dec 14 05:03:15 otterslave systemd[1]: Started [email protected].

@JoePotchen
Copy link
Author

So I have pinned down the problem to the python script not running inside my shell file when usbmount executes run-parts. When I run run-parts myself it runs fine.

@Roaders
Copy link

Roaders commented Apr 23, 2022

Did you get any further on this? I have a similar problem with scripts not being run. When I run run-parts /etc/usbmount/mount.d/ the script runs fine but nothing happens when usbmount runs it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants