Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: 2.1 updates

...

  • Ensure that all paths in your Charon-PAR file are absolute paths.
  • Test your Charon-PAR configuration manually until satisfied that it is working correctly and your guest operating system services start as expected.
  • Copy /opt/charon/bin/hppacharon-par.service to a local file. For example: <guest-name>.service
  • Adapt the service file to contain the correct paths to the Charon-PAR executable (hppa/opt/charon/bin/charon-par) and the Charon-PAR configuration file.
  • Copy the service file to /etc/systemd/system.
  • Test a manual start of the service:
    # systemctl start <guest-name>
  • Check the status of the service:
    # systemctl status <guest-name>
  • Shut down the guest operating system if running.
  • Test a manual stop of the service:
    # systemctl stop <guest-name>
  • If everything worked as expected, enable the service for automatic startup:
    # systemctl enable <guest-name>

...

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 charon-par -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 charon-par -f /Stromasys/Charon-PAR/myguest/>
Main PID: 514528 (hppacharon-par)
Tasks: 78 (limit: 76997)
Memory: 4.2G
CPU: 1.612s
CGroup: /system.slice/myguest.service
└─514528 /opt/charon/bin/hppa charon-par -f /Stromasys/Charon-PAR/myguest/myguest.cfg

<lines removed>

...