You are not logged in.

#1 2014-12-11 15:55:37

esquire70
Member
Registered: 2014-10-25
Posts: 13

[Solved] using systemd with offlineimap

I am setting up offlineimap for use with Mutt and following the wiki here. I added the appropriate commands to ~/.offlineimaprc and created  /etc/systemd/system/offlineimap@.service as specified in the article. From there, I type

sudo systemctl start offlineimap@.service

and get

Failed to start offlineimap@.service: Unit name offlineimap@.service is not valid.

Can you help me correctly enable offlineimap as a background task? Thanks.

Last edited by esquire70 (2014-12-11 17:56:38)

Offline

#2 2014-12-11 16:04:41

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] using systemd with offlineimap


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-12-11 17:31:02

esquire70
Member
Registered: 2014-10-25
Posts: 13

Re: [Solved] using systemd with offlineimap

Thanks. I probably should have mentioned that was where I got the systemctl command so I am still at a bit of a loss. I'll start looking at the systemd for administrators series here but any additional pointers would be appreciated.

Offline

#4 2014-12-11 17:46:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] using systemd with offlineimap

See the last line of the note:

Also, if a template unit is called without an instance identifier, it will just fail, since the %i specifier cannot be substituted.

According to the service file you are using, you want the %i to expand to your $user, so call the template with `systemctl enable offlineimap@esquire70.service`...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-12-11 17:53:59

esquire70
Member
Registered: 2014-10-25
Posts: 13

Re: [Solved] using systemd with offlineimap

That worked great. Thank you so much for your assistance.

Offline

#6 2014-12-11 17:55:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] using systemd with offlineimap

No problem. Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB