summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/updater/Makefile10
-rw-r--r--bin/updater/README.rst21
2 files changed, 24 insertions, 7 deletions
diff --git a/bin/updater/Makefile b/bin/updater/Makefile
index 80f40509d..fc2c697fc 100644
--- a/bin/updater/Makefile
+++ b/bin/updater/Makefile
@@ -28,14 +28,14 @@ install-systemd: preinitsetup
install-sysvinit: preinitsetup
- cp $(CURDIR)/sysvinit/owncloud-news-updater /etc/rc.d/
+ cp $(CURDIR)/sysvinit/owncloud-news-updater /etc/init.d/
@echo ""
@echo "Installed files. Please edit your config in /etc/owncloud/news/updater.ini and run:"
- @echo " TBD"
- @echo " TBD"
+ @echo " sudo update-rc.d /etc/init.d/owncloud-news-updater defaults"
+ @echo " sudo /etc/init.d/owncloud-news-updater start"
@echo "to run the updater on startup and:"
- @echo " TBD"
+ @echo " sudo /etc/init.d/owncloud-news-updater restart"
@echo "to reload the changes if you change the config in /etc/owncloud/news/updater.ini"
@@ -48,4 +48,4 @@ make uninstall: clean
@echo ""
@echo "Uninstalled files. Please run: "
@echo " systemctl disable owncloud-news-updater"
- @echo "to remove it from boot" \ No newline at end of file
+ @echo "to remove it from boot"
diff --git a/bin/updater/README.rst b/bin/updater/README.rst
index c588b28e8..ac0c11ae9 100644
--- a/bin/updater/README.rst
+++ b/bin/updater/README.rst
@@ -59,7 +59,24 @@ If you make changes to the **updater.ini** file don't forget to reload the servi
Installation: SysVinit
----------------------
-TBD
+.. note:: Debian 7 (wheezy) is the only supported Linux distribution for SysVinit and support will be dropped once Debian 8.1 is released
+
+To install the script for SysVinit run::
+
+ sudo make install-sysvinit
+
+Then edit the config in **/etc/owncloud/news/updater.ini** with your details and run::
+
+ owncloud-news-updater -c /etc/owncloud/news/updater.ini
+
+to test your settings. If everything worked out fine, enable the init script with::
+
+ sudo update-rc.d /etc/init.d/owncloud-news-updater defaults
+ sudo /etc/init.d/owncloud-news-updater start
+
+If you make changes to the **updater.ini** file don't forget to reload the service with::
+
+ sudo /etc/init.d/owncloud-news-updater restart
Uninstallation
@@ -85,4 +102,4 @@ Development
If you want to edit the python code and test it run::
- python3 -m owncloud_news -c /path/to/config.ini \ No newline at end of file
+ python3 -m owncloud_news -c /path/to/config.ini