X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=115-188-36-24-adsl.sparkbb.co.nz; envelope-from=<surgemail-support@netwinsite.com>;
X-Received: from [192.168.1.160] (115-188-36-24-adsl.sparkbb.co.nz [115.188.36.24])
by netwin.co.nz (SurgeMail 7.4p) with ESMTP (TLS) id 25573677-1391920
for <surgemail-list@netwin.co.nz>; Thu, 30 Jul 2020 01:20:35 +0000
X-Return-Path: surgemail-support
Subject: Re: [SurgeMail List] systemd service file for Surgemail
To: surgemail-list@netwin.co.nz
References: <52afe5e4-aaa4-4131-d2f4-596054d95234@lcrcomputer.info>
From: Surgemail Support
Message-ID: <bd76b16f-4590-0d2b-a4e0-502d4b4fd153@netwinsite.com>
Date: Thu, 30 Jul 2020 13:20:30 +1200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <52afe5e4-aaa4-4131-d2f4-596054d95234@lcrcomputer.info>
Content-Transfer-Encoding: 7bit
Content-Language: en-US
X-Rcpt-To: <surgemail-list@netwin.co.nz>
X-SpamDetect: : 0.000000
X-Info: aspam skipped due to (g_smite_skip_relay)
X-Encryption: SSL encrypted
X-IP-stats: Incoming Last 1, First 15, in=262, out=0, spam=0 ip=115.188.36.24
List-Unsubscribe: <mailto:surgemail-list-leave@netwin.co.nz?subject=unsubscribe>
X-Mailing-List: surgemail-list@netwin.co.nz
List-ID: <surgemail-list@netwin.co.nz>
Precedence: bulk
Reply-To: surgemail-list@netwin.co.nz
Try this: (surgemail.service)
[Unit]
Description=SurgeMail Email
Conflicts=sendmail.service exim.service postfix.service
[Service]
Type=forking
PIDFile=/usr/local/surgemail/surgemail.pid
ExecStart=/usr/local/surgemail/surgemail_start.sh
ExecStop=/usr/local/surgemail/surgemail_stop.sh
[Install]
WantedBy=multi-user.target
On 30/07/2020 12:52 pm, Lyle Giese wrote:
> Does anyone have a working systemd surgemail start/stop script? I have
> stumbled on this and know a couple of work arounds, but my
> understanding of systemd is lacking...
>
> Thanks,
>
> Lyle Giese
>
> LCR Computer Services, Inc.
>
>
--
p.s. We'd love a link from your website to our new domain: https://surgemail.com if/when u have time.
|