Activation and Deactivation of Daemons in Fonz fun_plug 0.7

After installing Fonz’ fun_plug (see tutorial on this), you will probably want work with like NFS or Torrent. This tutorial will show you how to do this.

The commands below are ONLY for fun_plug Version 0.7

Werbung

Contents

Daemons

What are Daemons?

Many packages can be used as “”Daemons””, which are basically programs running in the background. E.g. lighttpd (a lightweight Web server) shows no output in the shell (e.g. in PuTTY) during its operation and should be started during the bootup-process.

Note that many daemon names end with d. So lighttpd is not a light tpd (whatever that would be), but a light http (protocol) d(aemon) with a few letters mashed together.

Every daemon that is capable of running in the background delivers a “starter file” which is located in /ffp/start/. These starter files are again simple scripts that control the startup and shutdown of the corresponding daemons.

Some starter files provide additional capabilities and options, which are displayed by simply invoking the starter file without any parameters. Copy and paste the following one line at a time, and try a few more:

cd /ffp/start
sh telnetd.sh
sh telnetd.sh status
sh sshd.sh
sh sshd.sh status

This works because starter files normally expect a “start” or “stop” parameter. Don’t try this trick with just any shell script: it may do something, because that is what it is there for.

Starting Daemons manually

You can start every daemon manually by executing

sh /ffp/start/desired_daemon.sh start

Stopping Daemons manually

You can stop every daemon manually by executing

sh /ffp/start/desired_daemon.sh stop

Permanent activation of Daemons

If you want to activate a Daemon permanently so that it gets executed during the bootup-process, you simply set the execution-right:

chmod a+x desired_daemon.sh

To see which daemons really got started during the last boot, see the end of the ffp.log file (in the top folder of your Volume_1 share). It will contain lines like

* /ffp/start/sshd.sh ...
Starting /ffp/sbin/sshd

for daemons that were started.

Permanent deactivation of Daemons

Deactivation of a Daemon (no automatic execution during bootup) is done as follows:

chmod a-x desired_daemon.sh

To see which daemon really got started during the last boot, see the end of the ffp.log file (in the top folder of your Volume_1 share). It will contain lines like

* /ffp/start/telnetd.sh inactive
* /ffp/start/sshd.sh ...
Starting /ffp/sbin/sshd

indicating which daemons were not started (like the telnet daemon) and which daemons were started (like the ssh daemon).

14 thoughts on “Activation and Deactivation of Daemons in Fonz fun_plug 0.7”

  1. Does anyone have experience or have tried Zoneminder on DNS320?

    I wanna record my cammeras using this tiny linux app that requires perl+mysql ..

    but no idea how to start.. (http://www.zoneminder.com/)

    ps: I’ve already installed fun_plug.

    help we aappreciated.

  2. Hi,
    I want to deactivate transmission daemon, I tried chmod a-x many times, but transmission is still starting. Does anyone know why?

  3. Hi,

    First of all thanks for the fun_plug and all the documentation.
    I’ve installed the version 0.7 of the fun_plug on a DLink DNS320.
    I’ve installed rtorrent and I’m trying to make it works as a daemon.
    I’ve found the script using screen here : http://doc.ubuntu-fr.org/rtorrent#rtorrent_en_daemon
    I can’t make it work at startup, even if it works when I launch it manually (removing the su -l root -c part).
    Whithout or with the su -l root -c it doesn’t work when I put a link to /ffp/bin/rtorrent-daemon into the /ffp/etc/fun_plug.local.
    This file is read but screen and rtorrent aren’t lauched.

    Any idea how to make it work ?

    Thanks a lot !

  4. Hi,

    I have a D-Link DNS-320L and I have installed fun-plug and followed all the tutorials as well as googled my ass off to get this thing working as a web server using lighttpd and php.

    I am a bit of a newbie, but I have followed so many guides and tutorials that my head is swimming.

    So here is where I am:

    I have installed fun_plug (no problems). Telneted in and enabled ssh – no problem logging in. Everything is good.

    Now I want to enable lighthttpd with php and mysql – and I am running into a brick wall. I cannot for the life of me get rid of the default login page – when I ssh to my NAS I can login and I have been used Nano to modify my /etc/*.conf files, but I cannot get the lightttpd server to work. When I point my browser to my internal lan IP for the device I always come to the D-Link login page for the device.

    Ideally I would like if I could move the D-Link login to port 81 so that I can set my dyndns to point to port 80 and serve both static and php pages from within the LAN.

    I am not a complete newbie, but there is something obvious I am missing here. Does anyone have anything they can suggest to help me out?

    I am running a Mac Mavericks system for the configuration, but it shouldn’t matter – I used Linux as my primary system for the past 10 years and am comfortable on the command line.

    Any suggestions where to look or tutorials that can walk me through this DNS-320L and fun_plug 0.7?

    Thanking you in advance
    Steve

    1. Just a correction — I don’t want to serve static and/or dynamic pages from within the lan. I will eventually point my router to port 80 on the DNS-320L to serve the pages.

      I just can’t figure out where I have gone wrong so far — anybody out there with a clue-stick to smack me with?

      Again I am using Mac products but that hasn’t been a problem as far as getting fun-plug to work. I am just looking for help to get my Cloud Server to use lighttpd and php with mysql — anyone know of a good tutorial that perhaps I have missed.

      Anybody? Anything?

      Thanks
      Steve

      1. Try putting lighttpd on another port (8080) and forward port 80 on the router to 8080 on the nas. Or use https (port 443) with a self-signed certificate (forward 443 on the router to 443 on the nas)

  5. So which daemons are default on in ffp 0.7 ? All of mine are currently +x because I screwed up 😀

  6. Can anyone tell me which daemons are +x by default? or which ones are required? I accidentally gave +x to all of them and i’m trying to revert.

  7. sorry about the multiple posts, i thought the first one hadn’t posted, so i tried to repost and then my computer showed me both comments 🙁 i feel like a n00b

  8. I have installed s:vsftpd-2.3.4-arm-1.txz, but there is no /ffp/start/vsftpd.sh

    How do I start this daemon?
    Is there some other mechanism in place?

  9. I am running iperf -s and it works for download, but fails with connection refused on upload. I am running it from the tmp directory which has r/w access for all. Connection refused to me sounds like a firewall, but I can’t find an iptables command. Any ideas on why the upload won’t work?

  10. i’ve install fun_plug on my DNS-320L but since i dont have direct internet connection to internet i’ve been searching how to install packages by downloading it first to no avail. can i ask for a help here?
    thanks

Leave a Reply to Hyu Cancel reply

Your email address will not be published. Required fields are marked *