[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
description
Enter the description of the service.
prerequisite-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.
start-timing
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.
start-command
Specify the command that runs when the application program starts.
stop-command
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.
startup-check
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.
start-target
If automatic startup is enabled, specify the target on which the application program is to be
started.
Specify
edge-normal.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
5. Configuring Software Environment
62
Summary of Contents for CE50-10
Page 1: ...Hitachi Industrial Edge Computer CE50 10 Instruction Manual CC 65 0171 ...
Page 10: ......
Page 23: ...Figure 1 6 Attaching mounting brackets 4 1 Installing the CE50 10 7 ...
Page 26: ......
Page 38: ......
Page 42: ...4 2 5 Connection diagram Figure 4 2 Connection diagram 4 External Contact Functions 26 ...
Page 44: ......
Page 87: ... sudo etc init d netfilter persistent save 5 Configuring Software Environment 71 ...
Page 117: ...version information 13 Log out from the unit exit 5 Configuring Software Environment 101 ...
Page 148: ......
Page 149: ...7 Maintaining the CE50 10 This chapter describes maintenance of the CE50 10 133 ...
Page 157: ...8 Troubleshooting This chapter describes troubleshooting of the CE50 10 141 ...
Page 162: ...8 1 14 Cannot turn off the power to the unit Please contact us 8 Troubleshooting 146 ...