repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git]
/
swapd
/
swapd.runit
blob
488d05924faaf18526af5cda1022eb9785da8d1e
1
#!/bin/bash
2
3
# source application-specific settings
4
5
.
/
etc
/
rc.conf
6
.
/
etc
/
rc.d
/
functions
7
8
PID
=
`pidof -o %PPID /usr/sbin/swapd`
9
SVC
=
swapd
10
11
if
[
-z
"
$PID
"
]
12
then
13
exec
/
usr
/
sbin
/
swapd
14
else
15
[
-z
$PID
]
||
exec
watchpid
$PID
16
fi
17
18