Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: skolo/raspberry-pi/swarming

Issue 1930143002: Make swarming bootstrap at boot, not login (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #!/bin/sh
2 # /etc/init.d/swarming
3 ### BEGIN INIT INFO
4 # Provides: swarming
5 # Required-Start: $remote_fs $syslog
6 # Required-Stop: $remote_fs $syslog
7 # Default-Start: 3 5
8 # Default-Stop: 0 6
9 # Short-Description: Either initializes swarming or starts it
10 # Description: Either initializes swarming or starts it
11 ### END INIT INFO
12
13 case "$1" in
14 start)
15 # Hack to get swarming access to /b
16 chmod 777 /b
17 # We need to run swarming as chrome-bot. Running it as root can cause issue s.
18 runuser -l chrome-bot -c '/opt/start_swarming' > /var/log/startup.log 2>/var /log/startup.err
19 ;;
20 stop)
21 echo "Stopping swarming"
22 /usr/bin/python /b/swarm_slave/swarming_bot.zip stop_bot
23 ;;
24 *)
25 echo "Usage: /etc/init.d/start start-swarming {start|stop}"
26 exit 1
27 ;;
28 esac
29
30 exit 0
OLDNEW
« skolo/raspberry-pi/start_swarming ('K') | « skolo/raspberry-pi/startup-script.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698