Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: small update

...

(info) When starting Charon-PAR as a service automatic boot of the guest operating system may also be required. Please refer to Guest System Autoboot for more information. 

(info) When starting Charon-PAR as a services, you have to start the terminal emulator to connect to the console serial port manually (e.g., PuTTY).

(warning) Important points to note when when starting and stopping a Charon-PAR service:

...

The following example shows the content of a service file, starting  the service, and checking the status:

Sample service file

$ cat myguest.service

[Unit]

Description="Charon emulator service"

After=syslog.target ncu.service aksusbd.service

Wants=aksusbd.service

[Service]

Type=forking

ControlGroup=cpu:/

WorkingDirectory=/opt/charon/log

PIDFile=/var/run/myguest.pid

ExecStart=/opt/charon/bin/hppa -f /Stromasys/Charon-PAR/myguest/myguest.cfg --daemon --pidfile /var/run/myguest.pid

[Install]

WantedBy=multi-user.target


Starting the service

# systemctl start myguest


Service status

$ systemctl status myguest

● myguest.service - "Charon emulator service"

Loaded: loaded (/etc/systemd/system/myguest.service; disabled; vendor preset: d>

Active: active (running) since Fri 2020-03-20 12:03:09 CET; 17s ago

Process: 514524 ExecStart=/opt/charon/bin/hppa -f /Stromasys/Charon-PAR/myguest/>

Main PID: 514528 (hppa)

Tasks: 78 (limit: 76997)

Memory: 4.2G

CPU: 1.612s

CGroup: /system.slice/myguest.service

└─514528 /opt/charon/bin/hppa -f /Stromasys/Charon-PAR/myguest/myguest.cfg


<lines removed>

Stopping and Disabling a systemd Service

...