LinHES Forums
http://forum.linhes.org/

Starting things at boot and mounting network shares
http://forum.linhes.org/viewtopic.php?f=21&t=30042
Page 1 of 1

Author:  marc.aronson [ Sun Nov 01, 2020 10:36 pm ]
Post subject:  Starting things at boot and mounting network shares

I used to be very active in the Knoppmyth & LINHES community, stepped away for a few years, but I'm back. Things have changed quite a bit and I have a few questions. I am coming from the world of Ubuntu...

  • What is the appropriate way to start a daemon or execute a script at boot? I want to autostart the headless Dropbox daemon under my username and the ftpd daemon as root.
  • I need to mount some network shares -- will changes to /etc/fstab remain intact when LINHES updates are applied?

Thanks in advance for any guidance you can provide.

Author:  welner [ Mon Nov 02, 2020 3:54 pm ]
Post subject:  Re: Starting things at boot and mounting network shares

I kick off a couple of start scripts using /etc/runit/1.local

Code:
cd /etc/runit
[root@mythtv runit]# cat 1.local
#!/bin/bash
#local user startup script, run at the end of runit 1
su - mythtv /usr/local/bin/start-subsonic
/usr/local/bin/restart-slimserver


if you are installing a package, however, the package may take care of the start/stop scripts

changes to /etc/fstab persist, as long as you are above the "STARTSCRUUB" block

Author:  marc.aronson [ Mon Nov 02, 2020 10:23 pm ]
Post subject:  Re: Starting things at boot and mounting network shares

Welner, thank you very much for that info -- it worked. Very much appreciated!

Good to know that updates won't wipe out the changes.

I don't see any start/stop scripts for the build-in ftp server, but I'm able to start it with a simple "/usr/bin/ftpd -D".

Marc

Author:  mattbatt [ Sat Dec 05, 2020 8:47 am ]
Post subject:  Re: Starting things at boot and mounting network shares

welcome back!!!

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/