beterraba

commit bf562d0104acb7aba956727acdc613b7b8ca768b

Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>

beterraba/servdef: move into the types file

 beterraba/beterraba.ha | 9 +++++++++
 beterraba/parse.ha | 8 --------


diff --git a/beterraba/beterraba.ha b/beterraba/beterraba.ha
index 849191a1df6013c38783c73fbf44d47d73ad7d19..806de3802b21fb38c884a636300eb01a0044573d 100644
--- a/beterraba/beterraba.ha
+++ b/beterraba/beterraba.ha
@@ -5,6 +5,15 @@ 	STARTED,
 	CRASHED
 };
 
+export type servdef = struct {
+	name: str,
+	desc: str,
+	cmd: str,
+	args: str,
+	wd: str,
+	reloadcmd: str
+};
+
 export type service = struct {
 	name: str,
 	description: str,




diff --git a/beterraba/parse.ha b/beterraba/parse.ha
index 11d6d9d9a2be0350c3ecce5120862fa9ffd8ffc5..dfd3271dfdbc6b65673518e6e574a1379c86e4ee 100644
--- a/beterraba/parse.ha
+++ b/beterraba/parse.ha
@@ -4,14 +4,6 @@ use fmt;
 use format::ini;
 use strings;
 
-export type servdef = struct {
-	name: str,
-	desc: str,
-	cmd: str,
-	wd: str,
-	reloadcmd: str
-};
-
 export type invalid = !void;
 
 export fn parse(in: io::handle) servdef = {