1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/sbin/runscript depend() { use net } start() { for user in ${IRSSI_USERS}; do ebegin "Starting irssi session for ${user}" /bin/su - ${user} -c "screen -dmS irssi -- irssi" eend $? "Failed to start irssi for ${user}" done }