filebrowser / docs

📄 Who doesn't like documentation?
58 stars 38 forks source link

documentation to provide scripts to daemonize, solves #4 #41

Open mckaygerhard opened 3 years ago

mckaygerhard commented 3 years ago

This merge request will provide examles to the issue #4 also improved ways to use in background on any server with limited privilegies

references to solve: https://github.com/filebrowser/filebrowser/issues/453#issuecomment-402516510 and https://github.com/filebrowser/filebrowser/issues/418

jniggemann commented 3 years ago

This is IMHO a very valuable contribution, thank you! Hope this gets merged soon, as quite a lot of people ask about init scripts. Can you please add a systemd service file?

mckaygerhard commented 3 years ago

i do not use SHITstemd.. sorry in any case winbuntu system easyle converts the sysvinit to the current init system running as i know so you dont need to have problems..

@o1egl i am waiting for this to be merged to continue fixin documentation cos some other changes will need interaction and will touch several files.. thanks in advance

jniggemann commented 3 years ago

i do not use SHITstemd..

And neither do I, but why make this emotional? Let's keep this technical.

sorry in any case winbuntu system easyle converts the sysvinit to the current init system running as i know so you dont need to have problems..

Why should I have problems? I've been using Linux since 1998 and have no problems using it :-) Think about it: Even if you (and I) dislike systemd, the vast majority of this projects' userbase probably uses it. And the documentation should educate / benefit the users, so I proposed including an example.
“Always pass on what you have learned.” - Yoda

That said, here's a shot at a service file. Untested, obviously.

[Unit]
Description=Filebrowser
After=network-online.target

[Service]
User=<user>
Group=<group>

ExecStart=/usr/local/bin/filebrowser

[Install]
WantedBy=multi-user.target
mckaygerhard commented 3 years ago

i do not use SHITstemd.. And neither do I, but why make this emotional? Let's keep this technical. sorry in any case winbuntu system easyle converts the sysvinit to the current init system running as i know so you dont need to have problems.. Why should I have problems? I've been using Linux since 1998 and have no problems using it :-)

i mean that any that want that thing just use the sysvinit script and those system will automatically provide a just-in-time unit when used! as i read in debian "fights" maillist of devuan initiative XD

also for that: you can made a merge request after this are merged! i do not work with those things

That said, here's a shot at a service file. Untested, obviously.

[Unit]
Description=Filebrowser
After=network-online.target

[Service]
User=<user>
Group=<group>

ExecStart=/usr/local/bin/filebrowser

[Install]
WantedBy=multi-user.target
mckaygerhard commented 2 years ago

@o1egl some time passed and tehre's PR pending here! i guess you should delegate some functions.. by exampled @ramiresviana is pretty notable here.. so he can organize and aswered the issu3es and close it when is unrelated..

please.. if you cannot take delegate task for.. ! @o1egl

mckaygerhard commented 2 years ago

plase also could you take a watch over this @o1egl also?

mckaygerhard commented 2 years ago

Hi @o1egl i reduced and try to fix.. but please considering that it seems you are viewing all the documentation as a developer only, we need to step on the shoes of the atrgeted people that will use the program.. not as a developer that already "have basic knowledge" that are not so basic for others..

o1egl commented 2 years ago

Hi @o1egl i reduced and try to fix.. but please considering that it seems you are viewing all the documentation as a developer only, we need to step on the shoes of the atrgeted people that will use the program.. not as a developer that already "have basic knowledge" that are not so basic for others..

If one is able to run a cli application, I'm sure they're familiar with shell basics like nohup, etc.

mckaygerhard commented 2 years ago

Hi @o1egl resolved all exep that start must be there' for openrc.. i tested in my alpine 3.8 and i need this cos if i removed. start prefectly but rest of states never worked..

mckaygerhard commented 2 years ago

I too am interested in these changes to get OOTB daemon support. Think I found a typo.

yes.. but author and owner still are lazy on the repos.. i requested him to delegate to the others two more active users to aprove and manage commits by PR