<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=5588&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Service for ipp-usb printing]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=5588</link>
		<description><![CDATA[The most recent posts in Service for ipp-usb printing.]]></description>
		<lastBuildDate>Wed, 01 Mar 2023 23:29:17 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Service for ipp-usb printing]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=41347#p41347</link>
			<description><![CDATA[<p>Hello,</p><p>I made this thread about devuan at the superuser website: <a href="https://superuser.com/questions/1771253/how-to-execute-ipp-over-usb-at-startup/1771256#1771256" rel="nofollow">https://superuser.com/questions/1771253 … 56#1771256</a></p><p>I am a bit of a beginner, and trying to implement the service for ipp-usb printing that runs at startup on debian.</p><p>As you can see, the people on the website gave me a template for a service script:</p><div class="codebox"><pre class="vscroll"><code>#! /bin/bash

### BEGIN INIT INFO
# Provides:          foo
# Required-Start:    $local_fs $network
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: foo service
# Description:       Run Foo service
### END INIT INFO

# Carry out specific functions when asked to by the system
case &quot;$1&quot; in
  start)
    echo &quot;Starting Foo...&quot;
    sudo -u foo-user bash -c &#039;cd /path/to/scripts/ &amp;&amp; ./start-foo.sh&#039;
    ;;
  stop)
    echo &quot;Stopping Foo...&quot;
    sudo -u foo-user bash -c &#039;cd /path/to/scripts/ &amp;&amp; ./stop-foo.sh&#039;
    sleep 2
    ;;
  *)
    echo &quot;Usage: /etc/init.d/foo {start|stop}&quot;
    exit 1
    ;;
esac

exit 0</code></pre></div><p>I realized this was much more difficult than I thought. I was hoping I could simply paste &quot;ipp-usb&quot; in there somewhere and that was it. Therefore, my questions are the following:</p><p>1. How can I find out the values that are correct for the block at the top that is commented out? Will the OS provide the values for Required-Start and Required-Stop? What about Default-Start, Default-Stop ?<br />2. When it comes to the lines for starting and stopping foo; (i) would I write &quot;sudo ipp-usb&quot; in the line that starts the service? And (ii) is it &quot;sudo killall ipp-usb&quot; for the other one? <br />3. Can i break my OS and unable to boot if I write the script incorrectly?<br />4. Is there anything else I will need to succeed?</p><p>Thanks for your time!</p>]]></description>
			<author><![CDATA[dummy@example.com (king.oslo)]]></author>
			<pubDate>Wed, 01 Mar 2023 23:29:17 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=41347#p41347</guid>
		</item>
	</channel>
</rss>
