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

Autostart at boot #226

Open
kyuzumaki opened this issue Aug 31, 2021 · 2 comments
Open

Autostart at boot #226

kyuzumaki opened this issue Aug 31, 2021 · 2 comments

Comments

@kyuzumaki
Copy link

Is there a recommended way to auto start udiskie on startup? Specifically on a machine that is headless and not using a gui? I have tried a shell script to call

udiskie -aNT &

But this doesn't work I think because its happening too early during the boot. It would be really useful to have a setting or script to enable/disable auto starting.

@coldfix
Copy link
Owner

coldfix commented Sep 1, 2021

Hi,

autostart completely depends on your setup and is not really an application level responsibility.

e.g. if using a custom window manager, you would put it in .xinitrc. If your window manager/desktop environment has autostart applications, you can put it there. On a headless machine with systemd, you could put it e.g. in a unit file that is activated by the multi-user.target, otherwise you may have to write an init script for your init system.

But this doesn't work I think because its happening too early during the boot. It would be really useful to have a setting or script to enable/disable auto starting.

How did you set it up, and what happens exactly? Do you have a log file? Did you setup the XXX-other permissions as described in the wiki?

@kyuzumaki
Copy link
Author

I used a small shell script and crontab @reboot to run it. For whatever reason this has proven to be unreliable so I think systemd will be better. Though its easy to make one I found a pre made .service file on github. https://github.com/hrehfeld/udiskie-systemd/blob/master/udiskie.service

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