Skip to content

Systemd service file #623

Description

@UweSauter

You might want to include the following file as /usr/lib/systemd/system/openfortivpn@.service. It allows openfortivpn to act as system service with its configuration stored in /etc/openfortivpn/<NAME>.conf.
Start a particular configuration with systemctl start openfortivpn@NAME.service.

[Unit]
Description=OpenFortiVPN for %I
After=network-online.target

[Service]
Type=simple
PrivateTmp=true
ExecStart=/usr/bin/openfortivpn -c /etc/openfortivpn/%I.conf
OOMScoreAdjust=-100

[Install]
WantedBy=multi-user.target

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions