Skip to content

Instantly share code, notes, and snippets.

@hridaydutta123
Last active July 8, 2017 08:54
Show Gist options
  • Save hridaydutta123/33ac5095541b4c05b11936569c814bb2 to your computer and use it in GitHub Desktop.
Save hridaydutta123/33ac5095541b4c05b11936569c814bb2 to your computer and use it in GitHub Desktop.
Rpi Services
# Create-AP (Link : https://github.com/oblique/create_ap)
/usr/bin/DisarmBootScript
-------------------------
#!/bin/bash
/home/alarm/create_ap/create_ap -g 192.168.43.1 wlan0 eth0 DisarmHotspotDB
etc/systemd/system/DisarmBootScript.service
--------------------------------------------
[Unit]
Description=DisarmBootScript
[Service]
ExecStart=/usr/bin/DisarmBootScript
[Install]
WantedBy=multi-user.target
/etc/systemd/system/mcs.service
--------------------------------
[Unit]
Description=mcs
[Service]
#Default-HTTP
ExecStart=/usr/bin/python2 /home/alarm/offlinemcs/manage.py runserver 0.0.0.0:8000
#NGINX
ExecStart=uwsgi --module=offlineMCS.wsgi:application --socket=127.0.0.1:8001 --chdir=/home/alarm/offlinemcs/
[Install]
WantedBy=multi-user.target
/etc/systemd/system/psync.service
----------------------------------
[Unit]
Description=psync
[Service]
ExecStart=/usr/lib/jvm/default/bin/java -jar /home/alarm/psyncPC.jar
[Install]
WantedBy=multi-user.target
***********************
***** LINKS *****
***********************
offlineMCS : https://github.com/ItsForkIT/offlinemcs ( Accept the pull request )
psync.jar : https://github.com/ItsForkIT/psync-pc/blob/master/distributables/psync-pc-jar-with-dependencies.jar
create_ap : github.com/oblique/create_ap
onlineMCS : https://github.com/ItsForkIT/onlinemcs
emb_services : https://github.com/ItsForkIT/emb_services
TwitterBot : https://github.com/ItsForkIT/TwitterBotXOB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment