-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.html
189 lines (138 loc) · 6.08 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!DOCTYPE html>
<html lang="en" ng-app="systemdgen" ng-strict-di>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Systemd service file generator | MySystemd</title>
<meta name="description" content=">A simple Systemd service file online generator. This powerful and intuitive user interface
makes us more efficient when we are creating new services file with all possible settings.">
<meta name="keywords" content="systemd service file generator, systemd generator, linux service files">
<!-- Angular Material style sheet -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,400italic">
<link rel="stylesheet"
href="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.12/angular-material.min.css">
<link rel="stylesheet"
href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/default.min.css">
<link rel="stylesheet" href="https://highlightjs.org/static/demo/styles/vs2015.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
<style>
.preview {
position: sticky;
top: 0;
}
.preview span {
margin: 0;
font-family: monospace;
}
.preview .section {
margin: 0;
font-weight: bold;
margin: 10px 0 0 0;
}
footer {
margin: 20px 0 20px 0;
text-align: center;
font-size: smaller;
text-transform: uppercase;
}
a {
color: cadetblue;
}
ng-messages {
color: white !important;
padding: 5px 5px 5px 5px;
}
.hint {
color: rgb(255, 193, 7);
}
</style>
</head>
<body ng-controller="main">
<div layout="row" layout-xs="column" layout-wrap layout-padding>
<div flex="">
<h1 class="md-display-3" style="text-align: center;">My Systemd Generator</h1>
<p class="md-body-2">A simple Systemd service file online generator. This powerful and
intuitive user
interface makes us more efficient when we are creating new services file with all possible settings. You can
click on plus button to add
more options under correspondent section. I hope that this tool makes your life more easier,
enjoy!
</p>
<p style="text-align: center;">
Find the code <a href="https://github.com/NunuM/my-systemd-service-file-generator">GitHub</a>
</p>
</div>
<div flex="" style="width: 100%;">
<pre style="overflow: auto;"><code class="language-bash">
#How to install
sudo cp -v mysystemdservice.service /etc/systemd/system #copy service file
sudo systemctl enable mysystemdservice.service #enable service
sudo systemctl start mysystemdservice.service #start service
sudo systemctl status mysystemdservice.service #check if the service started
sudo journalctl -f -u mysystemdservice.service #inspect the logs
#How to Remove
sudo systemctl stop mysystemdservice.service
sudo systemctl disable mysystemdservice.service
sudo systemctl daemon-reload
</code></pre>
</div>
</div>
<div layout="row" layout-xs="column" layout-wrap>
<div flex="" layout-padding>
<!-- UNIT OPTIONS -->
<md-toolbar class="md-toolbar-tools">
<h3>Unit Options</h3>
<span class="flex"></span>
<md-button class="md-icon-button" aria-label="More">
<md-icon ng-click="showOptionsDialogue($event,'unit', 'unitVisibleItems')" md-svg-icon="plus.svg">
</md-icon>
</md-button>
</md-toolbar>
<d-unit sec="unit" vis="unitVisibleItems"></d-unit>
<!-- SERVICE OPTIONS -->
<md-toolbar class="md-toolbar-tools">
<h3>Service Options</h3>
<span class="flex"></span>
<md-button ng-click="showOptionsDialogue($event,'service', 'serviceVisibleItems')"
class="md-icon-button" aria-label="More">
<md-icon md-svg-icon="/plus.svg"></md-icon>
</md-button>
</md-toolbar>
<d-unit sec="service" vis="serviceVisibleItems"></d-unit>
<!-- INSTALL OPTIONS -->
<md-toolbar class="md-toolbar-tools">
<h3>Install Options</h3>
<span class="flex"></span>
<md-button ng-click="showOptionsDialogue($event,'install', 'installVisibleItems')"
class="md-icon-button" aria-label="More">
<md-icon md-svg-icon="/plus.svg"></md-icon>
</md-button>
</md-toolbar>
<d-unit sec="install" vis="installVisibleItems"></d-unit>
</div>
<div flex="" layout-padding>
<md-toolbar class="md-toolbar-tools">
<h3>Systemd service file preview</h3>
<span class="flex"></span>
<md-button ng-click="download()" class="md-icon-button" aria-label="Download">
<md-icon md-svg-icon="/download.svg"></md-icon>
</md-button>
</md-toolbar>
<d-preview></d-preview>
</div>
</div>
<footer>
<p>Made with ❤️ by <a href="https://github.com/NunuM" rel="author" target="__blank">NunuM</a> | Powered by <a
href="https://talos.sh">Talos</a></p>
</footer>
<!-- Angular Material requires Angular.js Libraries -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.0/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.0/angular-animate.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.0/angular-aria.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.0/angular-messages.min.js"></script>
<!-- Angular Material Library -->
<script src="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.12/angular-material.min.js"></script>
<script src="app.js"></script>
</body>
</html>