summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-03-23 01:25:06 +0200
committerGitHub <noreply@github.com>2017-03-23 01:25:06 +0200
commit4a67e27742c0ab8ed6cd8421d34c01c0de588705 (patch)
tree520a34b65e9ef88abeaa4eb8bf049cc808ea075b
parente4f4b4bdf48c7a1cf604841a3a8999f4408efdbb (diff)
parent4aeb996ef62bbc29ef707e7c5792894af86b6504 (diff)
Merge pull request #780 from MajesticFalcon/master
Add init script instructions and Model fix
-rw-r--r--README.md28
-rw-r--r--lib/oxidized/model/alvarion.rb4
2 files changed, 31 insertions, 1 deletions
diff --git a/README.md b/README.md
index 2317b5e..5dcd7e0 100644
--- a/README.md
+++ b/README.md
@@ -898,6 +898,34 @@ hooks:
channel: "#network-changes"
```
+# Extra
+
+## Ubuntu SystemV init setup
+
+The init script assumes that you have a used named 'oxidized' and that oxidized is in one of the following paths:
+
+```
+/sbin
+/bin
+/usr/sbin
+/usr/bin
+/usr/local/bin
+```
+
+1.)Copy init script from extra/ folder to /etc/init.d/oxidized
+2.)Setup /var/run/
+
+```
+mkdir /var/run/oxidized
+chown oxidized:oxidized /var/run/oxidized
+```
+
+3.)Make oxidized start on boot
+
+```
+update-rc.d oxidized deafults
+```
+
Note the channel name must be in quotes.
# Ruby API
diff --git a/lib/oxidized/model/alvarion.rb b/lib/oxidized/model/alvarion.rb
index 3c762de..7a4dcc7 100644
--- a/lib/oxidized/model/alvarion.rb
+++ b/lib/oxidized/model/alvarion.rb
@@ -8,6 +8,8 @@ class Alvarion < Oxidized::Model
end
- cfg :tftp {}
+ cfg :tftp do
+
+ end
end