Cleanup, README

This commit is contained in:
2017-11-13 12:08:23 +01:00
parent 410972b8ce
commit 092a79e484
13 changed files with 153 additions and 592 deletions
-15
View File
@@ -1,15 +0,0 @@
# Defaults for gammu-smsd initscript
# sourced by /etc/init.d/gammu-smsd
# installed at /etc/default/gammu-smsd by the maintainer scripts
#
# This is a POSIX shell fragment
#
# Additional options that are passed to the Daemon.
DAEMON_OPTS=""
# user to use (gammu is default)
#USER=gammu
USER=beieli
+8
View File
@@ -0,0 +1,8 @@
[gammu]
# Please configure this!
port = /dev/ttyAMA0
connection = at
# Debugging
#logformat = textall
logformat = errorsdate
#pin = 8296
+1 -1
View File
@@ -1 +1 @@
beieli ALL=(ALL) NOPASSWD: /sbin/init,/home/beieli/root-bin/connect_to_internet,/home/beieli/root-bin/disconnect_from_internet,/home/beieli/root-bin/hotspot_on,/home/beieli/root-bin/hotspot_off
beieli ALL=(ALL) NOPASSWD: /sbin/init,/home/beieli/root-bin/connect_to_internet,/home/beieli/root-bin/disconnect_from_internet,/home/beieli/root-bin/hotspot_on,/home/beieli/root-bin/hotspot_off,/home/beieli/root-bin/sync_time_with_internet
@@ -1,18 +0,0 @@
[Unit]
Description=SMS daemon for Gammu
Documentation=man:gammu-smsd(1)
After=mysql.service postgresql.service
[Service]
EnvironmentFile=-/etc/sysconfig/gammu-smsd
# Run daemon as root user
#ExecStart=/usr/bin/gammu-smsd --pid=/var/run/gammu-smsd.pid --daemon
# Run daemon as non-root user (set user/group in /etc/sysconfig/gammu-smsd)
ExecStart=/usr/bin/gammu-smsd --user=beieli --group=gammu --pid=/var/run/gammu-smsd.pid --daemon
ExecReload=/bin/kill -HUP $MAINPID
ExecStopPost=/bin/rm -f /var/run/gammu-smsd.pid
Type=forking
PIDFile=/var/run/gammu-smsd.pid
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,15 @@
[Unit]
Description=smsmon service
After=syslog.target
After=network.target
[Service]
Type=simple
User=beieli
Group=beieli
WorkingDirectory=/home/beieli/bin
ExecStart=/home/beieli/bin/smsmon.py
Restart=always
[Install]
WantedBy=multi-user.target