Last active
September 28, 2017 04:08
-
-
Save vipmax/d8f1e148e52a7a189814cf7851e5bbb0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat social/scripts/social-site.service | |
cat social/scripts/social-crawler.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Social Crawler Service | |
[Service] | |
Type=forking | |
WorkingDirectory=/home/nano/social/ | |
ExecStart=/usr/bin/java -cp target/social-1.0-allinone.jar social.crawlers.CrawlerRunner & | |
ExecStop=/bin/kill -TERM $MAINPID | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Description=Social Site Service | |
[Service] | |
User=nano | |
WorkingDirectory=/home/nano/social/ | |
ExecStart=/home/nano/anaconda3/bin/python src/main/python/social_server.py | |
ExecStop=/bin/kill -TERM $MAINPID | |
Restart=always | |
Type=idle | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment