Hitachi CE50-10 Instruction Manual page 78

Table of Contents

Advertisement

5. Configuring Software Environment
[Service]
ExecStart=<start-command>
ExecStop=<stop-command>
Type=<startup-check>
RemainAfterExit=<yes|no>
[Install]
WantedBy=<start-target>(edge-normal.target)
Table 5‒12: Settings of the systemd script
Item
description
prerequisite-service
start-timing
start-command
stop-command
startup-check
start-target
(2) Enabling or disabling automatic startup
Run the following command to enable automatic startup of the application program.
$ sudo systemctl enable application-name
Run the following command to disable automatic startup of the application program.
$ sudo systemctl disable application-name
62
Enter the description of the service.
Specify the service (required-service) to be started if it is not running when the application
starts. If automatic startup of the application is enabled, the prerequisite service starts even if
automatic startup of the prerequisite service is disabled. If the attempt to start the prerequisite
service fails, startup of the application is canceled.
If automatic startup is enabled, specify the service after which the application program is to be
started.
If, for example, there is a service (such as a database) which the application depends on, you
can specify the order of starting the service. You must specify fsmount.service, which is
the service for mounting the user area.
Specify the command that runs when the application program starts.
Specify the command that runs when the application program stops.
When you delete this line, the kill command stops all processes generated by the start
command.
Specify how to determine whether the application program has started.
You can specify oneshot, simple, or forking. Their meanings are as follows:
• oneshot: When the start command is run, the application is determined to have started.
If RemainAfterExit is set to no, the application is determined to have terminated
immediately.
If RemainAfterExit is set to yes, the application is determined to be running
irrespective of the application status.
• simple: When the start command starts running, the application is determined to have
started.
A process of the start command is recognized as an application and monitored.
• forking: When the start command terminates normally, the application is determined to
have started.
A child process of the start command is recognized as an application and monitored.
When the OS shuts down, if the application program is recognized as running, run the stop
command.
If automatic startup is enabled, specify the target on which the application program is to be
started.
Specify edge-normal.target.
Description

Advertisement

Table of Contents
loading

Table of Contents