Jump to content
Not connected, Your IP: 18.117.158.124
alkalined

Running Eddie as a service on a Raspberry Pi (osmc)

Recommended Posts

I'm successfully running the eddie client with the following command:
sudo /home/osmc/airvpn/eddie-cli -connect -netlock

However, I want to configure it to run as a service, as soon as the network interface is up. I've created /lib/systemd/system/airvpn.service with the following contents:

 

[Unit] 
Description = AirVPN Client (Eddie)
After = network.target
[Service] 
Type = simple
User = root
ExecStart = /home/osmc/airvpn/eddie-cli -connect -netlock
Restart = always
[Install]
WantedBy = multi-user.target

But when I start the service, it doesn't run and I get the following from sudo journalctl -u airvpn

eddie-cli[7255]: [ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: Lib.Platform.Linux.Native.so
eddie-cli[7255]:   at (wrapper managed-to-native) Eddie.Platform.Linux.Native:eddie_signal (int,Eddie.Platform.Linux.Native/eddie_sighandler)
osmc eddie-cli[7255]:   at Eddie.Platform.Linux.Platform.OnInit (System.Boolean cli) [0x0021a] in <fa5edc113cd34687a3a471dec3ba63b7>:0
osmc eddie-cli[7255]:   at Eddie.Core.Engine.Initialization (System.Boolean cli) [0x00000] in <1e873ed653644897a51a4d68deac7371>:0
osmc eddie-cli[7255]:   at Eddie.CLI.Linux.MainClass.Main (System.String[] args) [0x00030] in <0746b67a12534408be7db4eef2ec9960>:0
osmc eddie-cli[7255]: exception inside UnhandledException handler: Object reference not set to an instance of an object
osmc systemd[1]: airvpn.service: Main process exited, code=exited, status=1/FAILURE
osmc systemd[1]: airvpn.service: Unit entered failed state.
osmc systemd[1]: airvpn.service: Failed with result 'exit-code'.

 

Any ideas?

 

Share this post


Link to post

Moderators do not speak on behalf of AirVPN. Only the Official Staff account does. Please also do not run Tor Exit Servers behind AirVPN, thank you.
Did you make a guide or how-to for something? Then contact me to get it listed in my new user guide's Guides Section, so that the community can find it more easily.

Share this post


Link to post

Yes,

 

I was missing the WorkingDirectory:

[Unit] 
Description = AirVPN Client (Eddie)
After = network.target
[Service] 
Type = simple
User = root
WorkingDirectory = /home/osmc/airvpn/
ExecStart = /home/osmc/airvpn/eddie-cli -connect -netlock
Restart = always
[Install]
WantedBy = multi-user.target

Then

 

 

sudo systemctl daemon-reload
sudo systemctl enable airvpn.service
sudo systemctl start airvpn.service
 

and all done...

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...