-
-
Save Rubentxu/6f2e8d4582984c031186a74e6dc13623 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 hidden or 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 hidden or 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