login_app 0.1.5

A generic login module for web apps
Documentation
#
# Service file
# To make login_app as a service
#
#
# Step 1: Copy this service file into system
# $ sudo cp login_app.service /etc/systemd/system
#
# Step 2: Make a log directory
# $ sudo mkdir /var/log/login_app
#
# Step 3: Start the service 
# $ sudo systemctl start login_app
#
# Step 4: Check the status of the service
# $ sudo systemctl status login_app
#
# Step 5: Check the net status
# $ sudo netstat -ntlp
#

[Unit]
Description=Find Latest NAV Site
ConditionPathExists=/home/mohan/projects/login_app
After=network.target
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=1
User=mohan
WorkingDirectory=/home/mohan/projects/login_app
ExecStart=/home/mohan/projects/login_app/login_app

# make sure log directory exists and owned by syslog
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p /var/log/login_app
ExecStartPre=/bin/chown syslog:adm /var/log/login_app
ExecStartPre=/bin/chmod 755 /var/log/login_app
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=login_app

[Install]
WantedBy=multi-user.target