File: 04-fix_path_in_sd-unit.patch

package info (click to toggle)
gammu 1.42.0-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,340 kB
  • sloc: ansic: 107,388; pascal: 7,209; cpp: 3,976; php: 1,622; python: 1,559; sh: 1,208; sql: 601; perl: 240; makefile: 162; asm: 31; cs: 4
file content (23 lines) | stat: -rw-r--r-- 956 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Change path of config file
 The proper location is /etc/default/gammu-smsd
 .
Author: Boian Bonev <bbonev@ipacct.com>
Origin: other
Forwarded: not-needed
Last-Update: 2021-09-22

--- a/contrib/init/gammu-smsd.service
+++ b/contrib/init/gammu-smsd.service
@@ -4,10 +4,10 @@ Documentation=man:gammu-smsd(1)
 After=mysql.service postgresql.service network-online.target
 
 [Service]
-EnvironmentFile=-/etc/sysconfig/gammu-smsd
+EnvironmentFile=-/etc/default/gammu-smsd
 # Run daemon as root user
 ExecStart=${CMAKE_INSTALL_FULL_BINDIR}/gammu-smsd --pid=/run/gammu-smsd.pid --daemon
-# Run daemon as non-root user (set user/group in /etc/sysconfig/gammu-smsd)
+# Run daemon as non-root user (set user/group in /etc/default/gammu-smsd)
 #ExecStart=${CMAKE_INSTALL_FULL_BINDIR}/gammu-smsd --user=${GAMMU_USER} --group=${GAMMU_GROUP} --pid=/run/gammu-smsd.pid --daemon
 ExecReload=/bin/kill -HUP $MAINPID
 ExecStopPost=/bin/rm -f /run/gammu-smsd.pid