Sha256: f03dd856828e668fce711db007234622a6b897ec67f99a4d5867d6960d8d5f11

Contents?: true

Size: 621 Bytes

Versions: 5

Compression:

Stored size: 621 Bytes

Contents

include "../aptpackage/aptpackage.sfp"

schema Service extends AptPackage {
	running : Bool

	final service_name = ""

	synchronized sub install {
		condition {
			this.installed != true
		}
		effect {
			this.installed = true
			this.running = false
		}
	}
	
	synchronized sub uninstall {
		condition {
			this.running = false
			this.installed = true
		}
		effect {
			this.installed = false
		}
	}

	sub start {
		condition {
			this.running != true
			this.installed = true
		}
		effect {
			this.running = true
		}
	}

	sub stop {
		condition {
			this.running = true
		}
		effect {
			this.running = false
		}
	}
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nuri-0.5.5 modules/service/service.sfp
nuri-0.5.4 modules/service/service.sfp
nuri-0.5.3 modules/service/service.sfp
nuri-0.5.2 modules/service/service.sfp
nuri-0.5.1 modules/service/service.sfp