Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
(ns jtk-dvlp.threed-wifi.binarygcode.read | |
(:require | |
[clojure.java.io :as io] | |
[clojure.string :as str])) | |
(defn bytes-seq | |
[x & opts] | |
(lazy-seq | |
(when-let [stream (if (instance? java.io.InputStream x) x (apply io/input-stream x opts))] |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)