Author Topic: Executing custom scripts after the storage pool starts  (Read 659 times)

Offline nomi34

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Executing custom scripts after the storage pool starts
« on: November 30, 2016, 04:48:31 pm »
Hello,

So I found the following page: Executing custom scripts before and/or after the storage pool starts or stops (http://wiki.flexraid.com/2012/03/04/executing-custom-scripts-before-andor-after-the-storage-pool-starts-or-stops/) and so I based on this I built a small script with the contents:

Code: [Select]
#!/bin/bash
service emby-server start

Essentially, wait for the pool before starting Emby - except I'm getting
Code: [Select]
[2016-11-29 23:59:45,076] WARN : /opt/raidf/host/pool-after-start.sh: line 2: service: command not found
Relevant log below, looking for some ideas on how to do this...

Code: [Select]
[2016-11-29 23:58:29,104] INFO : Setting core service port to 9595
[2016-11-29 23:58:29,104] INFO : Setting Http port to 8080
[2016-11-29 23:58:29,104] INFO : Https port not set. Https requests will not be serviced...
[2016-11-29 23:58:29,104] INFO : Starting FlexRAID...
[2016-11-29 23:58:29,106] INFO : FlexRAID 2.1 [Snapshot 1.1 / Storage Pool 2.0] [2015.11.01]
[2016-11-29 23:58:29,106] INFO : Started: November 29, 2016 11:58:29 PM EST
[2016-11-29 23:59:30,382] INFO : Initiating FlexRAID Storage Pool...
[2016-11-29 23:59:30,382] INFO : Host OS = Linux
[2016-11-29 23:59:30,382] INFO : Building View Registry...
[2016-11-29 23:59:30,382] INFO : Building Auto View Registry...
[2016-11-29 23:59:30,391] INFO : Loading View options...
[2016-11-29 23:59:30,562] INFO : Using Auto-View definition...
[2016-11-29 23:59:30,563] INFO : Building View Handler...
[2016-11-29 23:59:30,564] INFO : Mounting Storage Pool drive...
[2016-11-29 23:59:45,076] WARN : /opt/raidf/host/pool-after-start.sh: line 2: service: command not found
[2016-11-30 00:09:06,458] INFO : Unmounting View...
[2016-11-30 00:09:06,490] INFO : Unmounting View complete...
[2016-11-30 00:09:29,039] INFO : Overriding locale to en_US