Table of Contents
YourService
YourService is a part of the ServiceManager and serves as an interface to start and stop your services.
Configuration
You have to copy an init script to /etc/init.d/yourservice.d/. This init script implements the following arguments: start, stop and status. On success, each of the arguments have to print their corresponding keywords (started, stopped and running) on stdout.
/etc/init.d/yourservice provides a template, which is displayed in the following listing:
- /etc/init.d/yourservice
#!/bin/bash case $1 in start) # Add your start operations here echo "started";; stop) # Add your stop operations here echo "stopped";; status) # Specify whether the service is still alive echo "running";; *) echo "unknown";; esac
The init script must be executable! (chmod +x)
Usage
Web interface → ServiceManager → YourService → Click on your desired service and click on Start or Stop.
Links
You could leave a comment if you were logged in.
