[asterisk-bugs] [JIRA] (ASTERISK-21991) [patch] - install a systemd service unit
Max (JIRA)
noreply at issues.asterisk.org
Wed Nov 11 05:49:33 CST 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-21991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=228258#comment-228258 ]
Max edited comment on ASTERISK-21991 at 11/11/15 5:47 AM:
----------------------------------------------------------
Here is another example of asterisk.service file which seems to be more aligned with the distributions package it (use of separate user/group, autorestart etc):
[Unit]
Description=Asterisk PBX and telephony daemon
Documentation=man:asterisk(8)
Wants=network.target
After=network.target
[Service]
Type=simple
User=asterisk
Group=asterisk
ExecStart=/usr/bin/asterisk -f -C /etc/asterisk/asterisk.conf
ExecStop=/usr/bin/asterisk -rx 'core stop now'
ExecReload=/usr/bin/asterisk -rx 'core reload'
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
was (Author: god):
Here is another example of asterisk.service file which seems to be more aligned with the distributions package it (use of separate user/group, autorestart etc):
[Unit]
Description=Asterisk PBX and telephony daemon
Documentation=man:asterisk(8)
Wants=network.target
After=network.target
[Service]
Type=simple
User=asterisk
Group=asterisk
ExecStart=/usr/bin/asterisk -f -C /etc/asterisk/asterisk.conf
ExecStop=/usr/bin/asterisk -rx 'core stop now'
ExecReload=/usr/bin/asterisk -rx 'core reload'
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
> [patch] - install a systemd service unit
> ----------------------------------------
>
> Key: ASTERISK-21991
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-21991
> Project: Asterisk
> Issue Type: New Feature
> Security Level: None
> Components: General
> Affects Versions: SVN
> Reporter: Tzafrir Cohen
> Severity: Minor
> Attachments: 0001-install-a-systemd-service.patch
>
>
> systemd is a new init system used by various Linux distributions. It aims at providing an environment that is compatible among different distributions, and hence its service configuration files ("units") are eto be provided from Upstream.
> The attached patch includes a simple version of a systemd unit for Asterisk, as well as installing it. It is not enabled, though.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list