added service files
This commit is contained in:
parent
4f99ba5f7d
commit
19326e31dd
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
PATH=$VIRTUAL_ENV/bin:$PATH exec python bill_man.py $1
|
|
@ -0,0 +1,25 @@
|
|||
[Unit]
|
||||
Description=Daily AWS Billing Report Service
|
||||
After=syslog.target network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/home/admin/service/bill_man
|
||||
Environment=VIRTUAL_ENV=/home/admin/service/bill_man/venv
|
||||
ExecStart=/home/admin/service/bill_man/bill_man start
|
||||
ExecStop=/home/admin/service/bill_man/bill_man start
|
||||
PIDFile=/home/admin/service/bill_man/bill_man.pid
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
TimeoutStartSec=5
|
||||
Type=forking
|
||||
PrivateDevices=yes
|
||||
PrivateTmp=yes
|
||||
ProtectSystem=full
|
||||
ReadWriteDirectories=/home/admin/service/bill_man/log
|
||||
ProtectHome=yes
|
||||
NoNewPrivileges=yes
|
||||
|
||||
[Install]
|
||||
#WantedBy=multi-user.target
|
||||
WantedBy=default.target
|
Loading…
Reference in New Issue