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

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

About Uli

Uli bought his first CH3SNAS in May 2007. Now he owns several NAS-Devices for the backup and storage of media data.Feel free to visit his Homepage: http://wolf-u.li (German) Did his posts help you? Please consider buying him a coffee (or two)!