Thecus N5200 Module: META
From NAS Website
Contents |
Facts
Name: META (Run startup and shutdown scripts)
Maintainer(s): Andreas Vogel (omega)
Target: N5200
Latest version: 2.00.00
Depends on module(s): none
Description
General Overview and Installation
This module comes as a ZIP compressed file with the name N5200_<modname>_<version>.zip, where <modname> is the module name and <version> is the version number of the module. While unpacking the ZIP file, a new directory N5200_<modname>_<version> containing the module and its source code is created.
The module file is called <modname>.mod and the source code is located in the directory <modname>. The source code is included for interested people and is not needed for module installation. The file Makefile can be used to rebuild the module on Linux systems.
The module is installed using the "System"->"Module Mgmt" menu in the Thecus Web Server Administration. Specify the file <modname>.mod as the module file and press "Install".
The whole installation process is logged and sent as an E-Mail if you're configured in the E-Mail notification configuration. After successful installation enable the module in order to run the module.
After uninstallation of the module, a log of the uninstall process will be send to the user(s) configured in the E-mail notification configuration. Prior uninstallation of the module, the actual configuration data is backed up to the place "/data/raid/module/backup/<modname>". When the module is installed again, the module configuration is restored from that place if available.
Module version 2.00.00
This module starts/stops shell scripts or other executables whenever it is tself started or stopped (normally when starting or stopping the system). The idea and the name for this module was borrowed from Lzimmerma, who was inventing it for the N2100, though this implementation is not 100% compatible to his idea.
Whenever this module is started, it looks to the directory /raid/data/module/META/system/etc/startup and tries to execute every file in that directory where the execute bit in its file mode is set. The script/executable is started with the only command line argument start. All output of the executed files is written to the file /raid/data/module/META/system/etc/startup.log. Old log files are kept using a rotate mechanism: actually 9 log files are kept and the oldest one gets deleted.
Whenever this module is stopped, it looks to the directory /raid/data/module/META/system/etc/shutdown and tries to execute every file in that directory where the execute bit in its file mode is set. The script/executable is started with the only command line argument stop. All output of the executed files is written to the file /raid/data/module/META/system/etc/shutdown.log. Old log files are kept using a rotate mechanism: actually 9 log files are kept and the oldest one gets deleted.
On the module property page, you can do this:
- See a short module description.
- Backup/Restore: backup/restore the module configuration data (in this case all the scripts and the log files) to persistent storage (/raid/data/module/backup/META).
- Download/Upload: download/upload the module configuration data as a compressed tar file.
News
- <2007-01-22>: First public release.
Versions
- Version 2.00.00
- Release date: 2007-01-22
- Works on firmware: 1.00.06.5
- Does not work on firmware: <= 1.00.05
- Download: N5200_META_2.00.00.zip
- Alternate Download: N5200_META_2.00.00.zip
- Major changes: First public release.
