Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This unit file supports the configuration check before restart and retains the P_MEMORY and S_MEMORY variable usage. Since both the systemd configuration and the init script take care of creating /var/run/opensips, the opensips.dirs file has been removed.
- Loading branch information
1 parent
185c15d
commit ee9dfb5
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[Unit] | ||
Description=OpenSIPS SIP Server | ||
After=network.target mysqld.service postgresql.service rtpproxy.service | ||
|
||
[Service] | ||
Type=forking | ||
User=opensips | ||
Group=opensips | ||
Environment=P_MEMORY=32 S_MEMORY=32 | ||
EnvironmentFile=-/etc/default/opensips | ||
PIDFile=/var/run/opensips/opensips.pid | ||
ExecStart=/usr/sbin/opensips -P /var/run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m $S_MEMORY -M $P_MEMORY $OPTIONS | ||
ExecStartPre=/usr/sbin/opensips -c -f /etc/opensips/opensips.cfg | ||
Restart=always | ||
TimeoutStopSec=30s | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
d /run/opensips 0775 opensips opensips - |