-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Support of non systemd linux systems. #487
Comments
@zen2 ah thanks for the heads up, I didn't realize that would be an issue! I'll try my best to fix that for you, so essentially since there is no service file being ran, you're basically just running the .py manually correct? If I can find a way to not have a service file that would be better in my opinion. |
@moraroy the classical way is to make a script autonomous from system with optionally a background option command and provide optionality systemd or init.d files separately. In my case I can write my own init.d one if the script works on itself. Most of linux distro package maintainers write needed init.d script or systemd init files to launch daemon process. About background option: About daemon exit: Basic example in bash:
In python, take a look to:
|
My system is not using systemd and so NSL is not launched as a daemon and produce errors when looking for systemctl command.
I've commented systemd part of the code and I'm able to install launchers.
I can scan games too by using myNSLGameScanner.py but I need to restart steam in order to see new games (I don't know if this restart is required on functional NSL installation).
So it can be really good to detect other classical /etc/init.d system and ideally to have a script that accept start/stop/restart in order that NSL can be easily integrated in any kind of init system.
The text was updated successfully, but these errors were encountered: