-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Systemd service file #623
Comments
I'm not certain the openfortivpn sources are the place to add this file to. If you want this file added to RPM packages please ask the packagers. I think that's where you may add a pull request: |
As you say. |
If you think it's useful outside of vendor packages we could add the file. It's just that not all target platforms have systemd. The title of this issue starts with CentOS 8.1 so I assumed this is only relevant for CentOS 8. We need to detect if systemd is available and find the location to write the file to. I don't know is the target always |
On Ubuntu 18.04
However on Ubuntu
That said on Fedora
And indeed while some of these files are brought by the
In short I'm OK with adding this file but I don't know how to find the target directory, either |
perhaps as a template in |
The apport setup script does seem to be installing such a file:
It appears the proper pkg-config variable is On Ubuntu 18.04:
On Fedora 31:
We can get the source installation process to install the file if systemd is available. But then vendor packages might need to be modified as well to include this file. |
More information on how to use Autotools to install the file here: |
When I installed it a few days ago from EPEL 8 no systemd unit file was included. This is the content of the package:
|
@UweSauter Yes, right now it is totally expected that no systemd unit file is included. |
As I wrote before I'm happy if this issue is just kept as reference for those in need of a systemd unit file. |
@UweSauter We are precisely in the process of finding a way to add the file. |
I have provided a patch that installs the file when systemd is available: |
You might want to include the following file as
/usr/lib/systemd/system/[email protected]
. It allows openfortivpn to act as system service with its configuration stored in/etc/openfortivpn/<NAME>.conf
.Start a particular configuration with
systemctl start [email protected]
.The text was updated successfully, but these errors were encountered: