Definition item
Description
<mount>
Specify the full path name of the mount destination directory. The specified directory is automatically
created by the OS.
<type>
Specify the file system type. The applicable file system is EXT4 only.
<mode>
Specify either of the following as the write mode to be used when the file system is mounted:
•
rw
: Read and write are possible.
•
ro
: Read only (write prohibited)
<initial>
Specify whether to automatically reformat the file system if an attempt to repair the file system fails. To
enable reformatting, you need to specify
1
or greater for the
fsckcnt
option.
•
0
: Reformat.
•
1
: Do not reformat.
<fsckcnt>
Specify how many times a file system check is to be performed, as a number in the range from
0
to
3
.
Specify
0
if you do not want to have the file system checked.
(c) Applying the definition to the unit
After editing the definition file by a user, enable it by restarting the unit.
(d) Definition example
#<device> <mount> <type> <mode> <initial> <fsckcnt>
/dev/sda11 /app/prog ext4 ro 0 0
/dev/sda12 /app/log ext4 rw 1 2
/dev/sda10 /app/contents ext4 rw 1 0
(e) Checking the definition file
After editing the definition file, run the
fsconfchk
command to check the contents. For details about the command,
$ sudo fsconfchk
(f) Note
If the file system is not constructed yet, specifying a value from
1
to
3
for
fsckcnt
and
1
for
initial
causes the
file system to be reformatted with the specified type. If
0
is specified for
initial
or
fsckcnt
, the file system is
not reformatted and an attempt to mount the device fails.
5.11.4 Setting start and stop of application programs
(1) Creating a script file
To use
systemd
to start and stop application programs, you need to create a configuration file (
systemd
script file)
and store it in the specified directory (
/lib/systemd/system/
). When the file is stored, an application program
is registered as one of the services of the OS.
The following describes how to specify the
systemd
script.
Enter the following information in a file named
application-program-name
.
service
under the
/lib/systemd/
system/
directory.
[Unit]
Description=<
description
>
Requires=<
prerequisite-service
>
After=fsmount.service<
start-timing
>
5. Configuring Software Environment
61
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 ...