Auto-start a service?

Questions about Wine on Linux
Locked
htorbov
Level 2
Level 2
Posts: 21
Joined: Wed Feb 01, 2012 11:33 am

Auto-start a service?

Post by htorbov »

I've installed a service with `wine service.exe -i`. I start it with `wine net start service.exe`. How can I make it to auto-start on boot? I've compiled wine without x-server.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Auto-start a service?

Post by jkfloris »

Write a systemd .service file?
htorbov
Level 2
Level 2
Posts: 21
Joined: Wed Feb 01, 2012 11:33 am

Re: Auto-start a service?

Post by htorbov »

Hm, how can I do that?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Auto-start a service?

Post by Bob Wya »

htorbov wrote:Hm, how can I do that?
@htorbov

With Google and the manual? :wink:
No... I'm kidding of course... :lol:

See: systemd.service Serrvice Unit ...

To avoid running Wine as root (bad!) - you'd probably want to use a systemd User Service Unit.
See: Arch Wiki: systemd/User ...

If your unspecified Linux Distribution uses systemd you can poke about in the existing Service Unit files for hints on how they are laid out.

Definitely read the documentation... It's pretty clear IMHO.

Being spoon-fed answers does not lead to better understanding of a subject...
So a least have a go first - best way to learn IMHO! 8)

Bob
Locked