Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #247405 > unrolled thread

how to register a system service

Started byHenrik S <henrik@tomatoservers.com>
First post2022-04-21 10:30 +0200
Last post2022-04-21 13:20 +0200
Articles 4 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  how to register a system service Henrik S <henrik@tomatoservers.com> - 2022-04-21 10:30 +0200
    Re: how to register a system service john doe <johndoe65534@mail.com> - 2022-04-21 10:40 +0200
    Re: how to register a system service Christian Britz <cbritz@t-online.de> - 2022-04-21 11:50 +0200
    Re: how to register a system service Greg Wooledge <greg@wooledge.org> - 2022-04-21 13:20 +0200

#247405 — how to register a system service

FromHenrik S <henrik@tomatoservers.com>
Date2022-04-21 10:30 +0200
Subjecthow to register a system service
Message-ID<EeAmm-abyg-3@gated-at.bofh.it>
Hello

Given I have a program, I want to make it start/stop as the normal 
system service such as postfix.

How can I setup this?

thank you.

[toc] | [next] | [standalone]


#247406

Fromjohn doe <johndoe65534@mail.com>
Date2022-04-21 10:40 +0200
Message-ID<EeAw1-abC2-33@gated-at.bofh.it>
In reply to#247405
On 4/21/2022 10:13 AM, Henrik S wrote:
> Hello
>
> Given I have a program, I want to make it start/stop as the normal
> system service such as postfix.
>
> How can I setup this?
>

If I understand you correctly, you will need to create a Systmed's
service file.

--
John Doe

[toc] | [prev] | [next] | [standalone]


#247407

FromChristian Britz <cbritz@t-online.de>
Date2022-04-21 11:50 +0200
Message-ID<EeBBL-acdq-3@gated-at.bofh.it>
In reply to#247405

On 2022-04-21 10:13 UTC+0200, Henrik S wrote:

> Given I have a program, I want to make it start/stop as the normal 
> system service such as postfix.
> 
> How can I setup this?

The man page for systemd.service contains examples for simple service
files. Even I was able to create one and that does mean something. ;-)

If you have specific questions, please come back.

-- 
http://www.cb-fraggle.de

[toc] | [prev] | [next] | [standalone]


#247413

FromGreg Wooledge <greg@wooledge.org>
Date2022-04-21 13:20 +0200
Message-ID<EeD0R-adai-1@gated-at.bofh.it>
In reply to#247405
On Thu, Apr 21, 2022 at 04:13:20PM +0800, Henrik S wrote:
> Given I have a program, I want to make it start/stop as the normal system
> service such as postfix.
> 
> How can I setup this?

A beginner's guide is at <https://wiki.debian.org/systemd/Services>.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web