Skip to content

Commit

Permalink
AutoNFS v1.4.1: added support for Systemd init-system (OpenSUSE)
Browse files Browse the repository at this point in the history
fixes #6

Signed-off-by: Martin Seener <[email protected]>
  • Loading branch information
martinseener committed Aug 17, 2014
1 parent 4e36669 commit 263abdf
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
AutoNFS is a client-side autofs-free NFS Share Automount-Script, initially designed for Debian Squeeze or derivates.
The Code can be found at [https://github.com/martinseener/autonfs](https://github.com/martinseener/autonfs)

## v1.4.1
- Renamed OS folders to Init-System names. So we support SysVinit (Debian), Upstart (Ubuntu) and the new Systemd (OpenSUSE) and their respective derivates ([fixed #6](https://github.com/martinseener/autonfs/issues/6))

## v1.4
- Removed Roadmap from README - we have Github for this
- made autonfs SysVinit script conform with 2-space indentation ([fixes #5](https://github.com/martinseener/autonfs/issues/5))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The initial Github version of AutoNFS v1.2.1 - as is - running quite well and st
The locations of the files are given through the folders in this Repository, so for example the autonfs.sh should reside in /usr/local/bin folder in your NFS-Client but starting v1.3 it can differ if new location is correctly set in /etc/default/autonfs config file.

1. Place a copy of the autonfs.sh (actual script) in the desired folder
2. Place a copy of the autonfs init/upstart file in the desired folder (see your folder distribution)
2. Place a copy of the autonfs init/upstart/systemd file in the desired folder (see your init-systems folder)
- Make both executable with `chmod +x /<path to the files>`
3. Place the /etc/default/autonfs file in the same path on your machine
- Modify the file by setting the correct `NFSSERVER` and `MOUNTS` vars and optionally `NFSVERS`, `MOUNTOPT` and `INTERVAL` and set the correct location of the autonfs.sh script, if you have placed it differently from the default in step 1!
Expand Down
File renamed without changes.
10 changes: 10 additions & 0 deletions Systemd/etc/systemd/system/autonfs.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=AutoNFS is a client-side autofs-free NFS Share Automount-Script
After=network.target

[Service]
ExecStart=/usr/local/bin/autonfs
Restart=on-abort

[Install]
WantedBy=multi-user.target
File renamed without changes.
2 changes: 1 addition & 1 deletion usr/local/bin/autonfs.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

# AutoNFS v1.4
# AutoNFS v1.4.1

# (c) 2012-2014 by Martin Seener ([email protected])
# Licensed under the GPLv2
Expand Down

0 comments on commit 263abdf

Please sign in to comment.