docs icon indicating copy to clipboard operation
docs copied to clipboard

documentation to provide scripts to daemonize, solves #4

Open mckaygerhard opened this issue 4 years ago • 10 comments
trafficstars

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

  • provide init scritps
  • feature a quick start
  • organize in annex section
  • closes #4

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

mckaygerhard avatar Oct 22 '21 15:10 mckaygerhard

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?

jniggemann avatar Oct 25 '21 10:10 jniggemann

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

mckaygerhard avatar Oct 25 '21 12:10 mckaygerhard

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

jniggemann avatar Oct 26 '21 06:10 jniggemann

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 avatar Oct 26 '21 14:10 mckaygerhard

@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 avatar Dec 23 '21 16:12 mckaygerhard

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

mckaygerhard avatar Jan 10 '22 16:01 mckaygerhard

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..

mckaygerhard avatar Jan 14 '22 14:01 mckaygerhard

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.

o1egl avatar Jan 16 '22 10:01 o1egl

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 avatar Jan 17 '22 15:01 mckaygerhard

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

mckaygerhard avatar Apr 21 '22 04:04 mckaygerhard