Extending FreeNAS - New Daemon and GUI, how to integrate and autorun

Status
Not open for further replies.

sandreas

Dabbler
Joined
Apr 20, 2012
Messages
23
Hello,

i wrote a python daemon for a FreeNAS AutoShutdown (to save costs). My Daemon periodically checks for System Activity on my FreeNAS server. System Activity is defined as:

- SSH Login or Console activity, not idling => w (parsing idle time)
- Filewrite Activity in /mnt/ => df | grep /mnt/
- Fileread Activity or Mapped Shares => fstat | grep /mnt/


The Daemon already works but i would like to do it right. So i would need the following infos:

- How can i activate the daemon after boot (autorun)?
- How can i integrate a config section in Web GUI (checkActivityIntervalSeconds=30s, shutdownAfterInactivityMinutes=20, maxIdleMinutesForSSH=10, watchFollowingPaths=/mnt/)?
- Is there an official Developer Guide for FreeNAS?
 
Status
Not open for further replies.
Top